Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generating New Primary Keys
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00013582
Message ID:
00013633
Vues:
31
>Question came up on Darcy Whites listserv and thought I'd throw it around here.
>
>What is best way to generate a new primary key?
>
>I use a udf that stores the pointer, and order. Then sets the order to the primary tag, then goes bottom and increments, then returns order and pointer and returns back new key. Fairly fast udf since it doesn't do any locate etc but if anyone has better code/ideas let me know.

what I do , which is btw, a la codebook - is use a table that holds (among other things) the last primerykey value of each table and get new PK using this table

Arnon
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform