Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MAJOR question...
Message
De
25/01/2001 12:03:39
 
 
À
25/01/2001 11:18:36
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00468472
Message ID:
00468545
Vues:
10
Hi Cindy -

I think it's important to make the distinction between PRIMARY key and SURROGATE key. A primary key is any value that distinctly identifies a record. It could, for business purposes, consist of a user-entered value (such as an SSN), and would therefore require validation. In such an instance, that would be known as a NATURAL key.

Surrogate keys, on the other hand, should never be entered (or even seen) by a user. These are most often integer or GUID values generated at the time of record creation.
Dan LeClair
www.cyberwombat.com
SET RANT ON - The Wombat Blog

Life isn’t a morality contest and purity makes a poor shield. - J. Peter Mulhern
Disclaimer: The comments made here are only my OPINIONS on various aspects of VFP, SQL Server, VS.NET, systems development, or life in general, and my OPINIONS should not be construed to be the authoritative word on any subject. No warranties or degrees of veracity are expressed or implied. Void where prohibited. Side effects may included dizziness, spontaneous combustion, or unexplainable cravings for dark beer. Wash with like colors only, serve immediately for best flavor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform