Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Field  





2 See also  





3 References  














Column (database)






العربية
Català
Čeština
Español
فارسی

Bahasa Indonesia
Latviešu
Magyar
Nederlands

Norsk nynorsk
Русский
Українська


 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


In a relational database, a column is a set of data values of a particular type, one value for each row of a table.[1] A column may contain text values, numbers, or even pointers to files in the operating system.[2] Columns typically contain simple types, though some relational database systems allow columns to contain more complex data types, such as whole documents, images, or even video clips.[3][better source needed] A column can also be called an attribute.

Each row would provide a data value for each column and would then be understood as a single structured data value. For example, a database that represents company contact information might have the following columns: ID, Company Name, Address Line 1, Address Line 2, City, and Postal Code. More formally, a row is a tuple containing a specific value for each column,[4] for example: (1234, 'Big Company Inc.', '123 East Example Street', '456 West Example Drive', 'Big City', 98765).

Field[edit]

The word 'field' is normally used interchangeably with 'column'.[5] However, database perfectionists tend to favor using 'field' to signify a specific cell of a given row. [citation needed] This is to enable accuracy in communicating with other developers. Columns (really column names) being referred to as field names (common for each row/record in the table). Then a field refers to a single storage location in a specific record (like a cell) to store one value (the field value). The terms record and field come from the more practical field of database usage and traditional DBMS system usage (This was linked into business like terms used in manual databases e.g. filing cabinet storage with records for each customer). The terms row and column come from the more theoretical study of relational theory.

Another distinction between the terms 'column' and 'field' is that the term 'column' does not apply to certain databases, for instance key-value stores, that do not conform to the traditional relational database structure.[6]

See also[edit]

References[edit]

  1. ^ The term "column" also has equivalent applications in other, more generic contexts. See e.g., Flat file database, Table (information).
  • ^ "Columnar databases in a big data environment". dummies.com (Big dummies book). Retrieved 2015-11-05.
  • ^ "What is Database Column? - Definition from Techopedia". Techopedia.com. Retrieved 2015-11-05.
  • ^ Rosenberg, Burton. "Relational Databases". University of Miami. Retrieved 2021-02-26.
  • ^ "An introduction to databases". www.ucl.ac.uk. Retrieved 2015-11-05.
  • ^ Drake, Mark (August 9, 2019). "A Comparison of NoSQL Database Management Systems and Models". Digital Ocean. Retrieved 2021-02-26.

  • Retrieved from "https://en.wikipedia.org/w/index.php?title=Column_(database)&oldid=1230716188"

    Categories: 
    Database management systems
    Data modeling
    Hidden categories: 
    Articles needing additional references from September 2016
    All articles needing additional references
    All articles lacking reliable references
    Articles lacking reliable references from June 2022
    All articles with unsourced statements
    Articles with unsourced statements from April 2018
     



    This page was last edited on 24 June 2024, at 08:43 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki