Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IS SYS(2015) really unique?
Message
De
16/03/2003 20:13:06
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00766401
Message ID:
00766402
Vues:
28
>Can anybody certify that the SYS(2015) function is generating unique ID. I plan to use this as a primary key in a big system and I want to be sure it won't generate duplicate...

I understand that it's only unique on a given CPU/clock. So it's possible that two users may generate the same number in a network application running on local PCs.
A solution may be to incorporate the users ID into a function...
eg

FUNCTION UniqueID
RETURN oU.userID + SYS(2015)
* where oU is some user system object
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform