Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Insert from Other Table?
Message
From
02/01/2001 11:00:31
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00457362
Message ID:
00458475
Views:
24
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform