Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sys(2015) for primary key.
Message
De
21/12/1996 17:09:30
 
 
À
21/12/1996 16:08:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00015796
Message ID:
00015797
Vues:
43
>I've been using sys(2015) as the field default for certain unique keys. Am I asking for trouble? I'm not sure how sys(2015) generates the string and for how long I can expect to keep getting unique strings..
>Any other ideas for unique keys?

Yes, some people are using that technique.

However, the more used one is by using a data dictionary table that hold the actual key of each table and some others used fields. By having that table, you can also apply a locking mecanism which will garantee to always have a unique key.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform