What does the term “Tuple” Mean in Relational Databases?

前端 未结 10 1884
青春惊慌失措
青春惊慌失措 2021-01-29 21:31

Please explain what is meant by tuples in sql?Thanks..

相关标签:
10条回答
  • 2021-01-29 22:11

    Whatever its use in mathematics, a tuple in RDBMS is commonly considered to be a row in a table or result set. In an RDBMS a tuple is unordered. A tuple in an MDDBMS is the instance of data in a cell with its associated dimension instances (members).

    What is the tuple in a column family data store?

    0 讨论(0)
  • 2021-01-29 22:12

    It's a shortened "N-tuple" (like in quadruple, quintuple etc.)

    It's a row of a rowset taken as a whole.

    If you issue:

    SELECT  col1, col2
    FROM    mytable
    

    , whole result will be a ROWSET, and each pair of col1, col2 will be a tuple.

    Some databases can work with a tuple as a whole.

    Like, you can do this:

    SELECT  col1, col2
    FROM    mytable
    WHERE   (col1, col2) =
            (
            SELECT  col3, col4
            FROM    othertable
            )
    

    , which checks that a whole tuple from one rowset matches a whole tuple from another rowset.

    0 讨论(0)
  • 2021-01-29 22:13

    Tuples are known values which is used to relate the table in relational DB.

    0 讨论(0)
  • 2021-01-29 22:17

    Tuple is used to refer to a row in a relational database model. But tuple has little bit difference with row.

    0 讨论(0)
提交回复
热议问题