Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Append from a table with autonum
Message
De
08/06/2011 02:16:12
 
 
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
Divers
Thread ID:
01513452
Message ID:
01513487
Vues:
41
This message has been marked as a message which has helped to the initial question of the thread.
>I'm copying table contents from one file to another and ran into an error while copying a table with an autonumber field. It says the field is read-only (which makes sense, I guess), and won't copy the records using an append from statement. Is there a quick/standard way to get around this? I know I could do a file copy, but was hoping to just pull records as needed from the other table.
>
>As always, thanks in advance.

The trick is to eliminate the autoinc fields from the amount copied over.
To be able to use Fieldlists in xBase and SQL I build them into a variable
and makroexpand that for SQL or add as Fieldlist for xBase.

HTH

thomas
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform