Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Insert from Other Table?
Message
De
02/01/2001 11:00:31
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00457362
Message ID:
00458475
Vues:
25
In VFP, there is no bulk insert, so you would need to do it one record at a time
use bigtable
use smalltable in 0 order candkey
scan for eof("smalltable")
     scatter memvar
     insert into smalltable from memvar
endscan
>I was trying to do it more SQL-ish; is that possible? I thought using APPEND would lock the table header and make it less multiuser.
>
>
>>
>>It can't be done in one insert-sql in VFP; however, here's one quick way I've used before
>>use smalltable order candkey
>>append from bigtable ;
>>     for !indexseek(candkey, .f., "smalltable", "candkey")
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform