Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Afraid that autoincrementing integer field skips ahead
Message
De
31/08/2010 02:40:25
 
 
À
30/08/2010 18:47:08
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:
01479366
Vues:
67
>A new free table is being added to an application. It will be the child of a previously existing table.
>
>The parent table unique id is made up of three fields totaling 20 characters. I'm considering adding an auto incrementing integer to the parent table to serve as link to the child table but am afraid what may happen if somehow the id sequence gets out of control and skips ahead to the maximum integer (2^32 - 1), This is a totally critical table in the application.
>
>In the experience of those here, is this a realistic fear? I would appreciate comments.
>
>TIA,
>
>Alex

Depends on how you write the application.
If you do not use DELETE to update records, you should not find problems
otherwise, you could consume 2 billion of integers with a few million records.

The max vfp integer is (2^31 - 1 ).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform