Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCAN Confused?
Message
De
06/06/2001 10:26:19
 
 
À
06/06/2001 09:49:08
Carol Dewar
Magram Computer Services Llc
Saugerties, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00515720
Message ID:
00515761
Vues:
13
Carol --

The smallest unit of value in DATETIME() is the second. So, if it's possible to generate more than 1 record in a second, you'll have a duplicate primary key. A REPLACE WITH DATETIME() will most do that.

As others have mentioned, it's best to enhance or change your PK generation. There are various options available, and the best really depends on your particular needs. You may be able to convert the DATETIME to a string and pre or postpend a workstation ID. However, if you do batch updates from one station, or need to seed an initial value, the process cannot run faster than 1 record per second. It may be preferable to use a unique ID generation program such as Craig has available.

Jay
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform