Column (database) |
In the context of a relational database, a column of a table (database) is a set of Data values of a particular simple type, one for each Row (database) of the table. The columns provide the structure according to which the rows are composed.
The term Field (computer science) is often used interchangeably with column , although many consider it more correct to use field (or field value ) to refer specifically to the single item that exists at the intersection between one row and one column.
For example, a table that represents companies might have the following columns:
Each row would provide a data value for each column and would then be understood as a single structured data value, in this case representing a company. More formally, each row can be interpreted as a relvar, composed of a set of Tuples, with each tuple consisting of the two items: the name of the relevant column and the value this row provides for that column.
Row 1 Column 1 Row 1 Column 2 Row 2 Column 1 Row 2 Column 2 Row 3 Column 1 Row 3 Column 2|
|