Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Transferring data from 1 table to another
Message
 
 
To
08/05/2008 17:22:05
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01315964
Message ID:
01316019
Views:
20
>O.K. so I have an inventory database which I have designed and I need to move records from 1 table to another, the issue is there are certain fields that will not transfer. The code I was working with (Thanks Naomi N.) was correct for transferring a whole record. My problem is where would the except clause get inserted with the scatter command?
>
>I have searched VFP help and the examples therein only exist to confuse
>
>the code is as follows:
>
>
>
>scatter name loRecord memo
>insert into mynewtable from name loRecord &&(verify this syntax,)
>delete from myoldtable where ID = loRecord.ID
>
>
>
>
>If anyone has any ideas thanks in advance
>
>Thanks
>
>Fred W.

From http://msdn.microsoft.com/en-us/library/3e7k65t6(VS.80).aspx
select myTable
scatter FIELDS EXCEPT ID MEMO name loRecord
insert into mynewtable from name loRecord 
delete && we're deleting current record just transferred.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform