Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,771,588,556 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

primary key

   Also found in: Acronyms, Wikipedia 0.02 sec.

primary key

The field (column) in a database table that is indexed and maintains the main sequence of the table. For example, account numbers are typically primary keys. A "composite primary key" is made up of two or more fields (columns) such as region + account number.


primary key [′prī‚merĀ·ē ′kē]
(computer science)
A key that identifies a record or portion of a record and determines the sequence of records in a file or other data structure.

(database)primary key - A unique identifier, often an integer, that labels a certain row in a table of a relational database.

When this value occurs in other tables as a reference to a particular row in the first table it is called a "foreign key".

Some RDBMSes can generate a new unique identifier each time a new row is inserted, others merely allow a column to be constrained to contain unique values.

A table may have multiple candidate keys, from which the primary key is chosen. The primary key should be an arbitrary value, such as an autoincrementing integer. This avoids dependence on uniqueness, permanence and format of existing columns with real-world meaning (e.g. a person's name) or other external identifier (e.g. social security number).

There should be enough possible primary key values to cater for the current and expected number of rows, bearing in mind that a wider column will generally be slower to process.


How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
The primary key factor in negative comments was customer support services in the post-order phase, which was present in 36 out of 44 comments.
OrderNo has been designated as the primary key (right-click on the OrderNo and select Primary Key from the shortcut menu).
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.