Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleted records
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00013889
Message ID:
00013934
Vues:
31
>>
>>What Dave told you is also good because you should have a mecanism of assigning primary key like using a TABLE.DBF to act as a data dictionary which can then be used to know the next value of the primary key and for
>the locking mecanism.
>
>While on this subject I had another question. Do you increment the value in the table and then retrieve the new key or do you retrieve the key (+1) and then increment the value in the table. Is there a reason for doing one rather than the other?

doesn't matter as long as a) is consistent and b) rlock is done before those two steps and released after those two... to me, it makes more sense to get val and then increment.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform