Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Afraid that autoincrementing integer field skips ahead
Message
De
03/09/2010 04:44:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
01/09/2010 23:05:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01479307
Message ID:
01479944
Vues:
48
>From the response of people here, I believe my fear is irrational. The fear comes from knowing that there is no way to generate any unused values should the counter somehow skip ahead. I don't know how it would skip ahead; perhaps bug in my program(?).

You can try to insert a record in a transaction, then rollback. My guess is that the counter would revert together with the transaction.

If you add two records and then delete the first one, its number looks unused, skipped if you want, but it was used while the record existed. So skipping seems to depend on the definition of "used".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform