Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programming Standards
Message
De
18/11/1999 12:17:24
Walter Meester
HoogkarspelPays-Bas
 
 
À
18/11/1999 11:16:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00291621
Message ID:
00292528
Vues:
26
Craig,

>Yes, some do...but they shouldn't. The PK should be totally meaningless to the data. It should not be something the user has to enter, nor should it be madeup of a combination of fields. I have a KB artilce on my website that discusses this.

Well, I've had some heavy discussion with JIMB about this subject. And I respectfully disagree with this statment. Though I know CODD or DATA do discourage intelligent key's, they're part of the relational model.

Personally I've got a few reasons to use intelligent key,s:
- It makes raw tables much easier to read, especially when testing or debugging applications.
- It generally requires less joins (as the intelligent key is only in one table) in your apps, therefore improving performance. The same reasoning goes for denormalization.

Using generated PK does remind me of the hierachical databases with pointers to child records. I'd really don't want to go that way.

In many cases I might use a generated key, but not in all. For Example if I got a article table, i would choose articlno (character) as the PK.

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform