Surrogate key |
A surrogate key is a unique primary key generated by the RDBMS that is not derived from any data in the database and whose only significance is to act as the primary key.
A surrogate key is frequently a sequential number (e.g., a Adaptive Server Enterprise identity column ) but doesn t have to be. Having the key independent of all other columns insulates the database relationships from changes in data values or database design (making your database more agile software development) and guarantees uniqueness.
Some database designers use surrogate keys religiously regardless of the suitability of other candidate keys. However, other database designers will use a key already present in the data, if there is one: the addition of a surrogate key will slow down access to the table, particularly if it is indexed.
Surrogate key may also be known as System-generated key , Database Sequence number , Synthetic key or an Arbitrary, unique identifier .
Some other options for surrogate keys are:
|
|