Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to increment Autoinc field just when tableupdate
Message
De
03/12/2004 07:20:22
 
 
À
03/12/2004 07:04:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00966638
Message ID:
00966645
Vues:
9
>Because sometimes the user give up to include a record (revert) and that number of autoinc field is not used. It is not a problem, just a preference of user.

It is not possible why it is intrinsic in the mechanism.

The single way would be that one to admit a value null, but ill-fatedly the fields autoincrement of all the databases that I know do not admit value null (an error for me).

In order to resolve it you must create the records on a temporary cursor, and when the customer confirmation the writing, to copy it (without buffering) in the table.

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform