Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Generate primary key
Message
De
27/08/2001 12:48:16
Jason Dalio
Northern Interior Regional Health Board
Prince George, Colombie Britannique, Canada
 
 
À
26/08/2001 22:02:39
Victor Lapid
Phil. Long Distance Tel. Co.
Manila, Philippines
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00549311
Message ID:
00549505
Vues:
18
If you want it to generate on the client and also have muliple clients use the program the only thing you can do is have a tble that holds the current record counter. Then have your client read this value from the SQL table (make sure you deal with locking!) and increment it by one. It can then use this new value as the new record primary key.

Note: This is not a good way to do it as a table that holds a single field defies normalization.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform