What is the difference between a row, record and tuple? [closed]

社会主义新天地 提交于 2019-12-07 21:30:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!