Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need for a New FAQ
Message
De
21/11/2000 10:48:19
Michael Dougherty
Progressive Business Publications
Malvern, Pennsylvanie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00444066
Message ID:
00444145
Vues:
9
My personal opinion is that the best method to generate unique primary keys (PK) is to autoincrement last used PK value. It is so called surrogate PK. If you have more questions, please ask.

how does the "autoincrement" get implemented?

I can imagine something like Select max(PK) from table, since PK field is indexed anyway, but this is a nightmare waiting to happen in a multi-user environment.

I thought about the keys table being the storage point for the "next" key - but that's also extra overhead/complexity

I'm working on a modification of the HighLow key strategy:
http://fox.wikis.com/wc.dll?Wiki~HighLowKeyGeneration
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform