问题
I am studying in a database development course at the moment and I am having trouble getting my head this!
My course notes describe a tuple as: A tuple is a row of a relation
From what I have understood since working with MySQL you search for row(s). Or when browsing through a database you are looking through rows in a table.
And from what I understood a record is information within a row.
Is there any distinct differences between the three?
I know someone has posted something similar but I couldn't really understand his answer.
Thanks for all help in advnce!
Peter
回答1:
In your context they are different words to mean exactly the same thing.
A tuple, in general, means an ordered list with possibly repeated elements (as contrasted to a set, which has all unique elements and is not ordered)
回答2:
They are the same.
A row—also called a record or tuple—represents a single, implicitly structured data item in a table.
回答3:
They mean exactly same thing: tuple, rows or records.
Your SELECT query will generate results that may contain 0 or more rows/records or tuples. A SELECT query can span 1 or more tables
来源:https://stackoverflow.com/questions/13057663/what-is-the-difference-between-a-row-record-and-tuple