Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append auto-inc values
Message
De
23/05/2007 10:36:47
 
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 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01227878
Message ID:
01227930
Vues:
13
>Having being used to generating unique reference fields in the past i decided to use to auto inc value for a particular project. I now want to append the contents of one table into another but i still want to keep the original unique reference no. When I append or scatter/gather foxpro will generate a new one
>
>Many thanks for any help

You can set
CursorSetProp("AutoIncError",.F.)
then can append the data. But that ignores the values inserted and uses the autoinc counter instead, so you need to alter the table, then alter it again with a good nextvalue.

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform