Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Easier way to perform this?
Message
From
28/06/2004 19:00:52
Luis Navas
Independent Consultant
Auckland, New Zealand
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Easier way to perform this?
Miscellaneous
Thread ID:
00918194
Message ID:
00918194
Views:
43
Hi, I'm inserting records from one table into another, but I only have to insert those record that aren't in the destination table. Now I'm doing it like this:
*!* Source Table
Select Table1
Scan
   lnId=Table1.Table1Id
   If !Seek(lnId,"Table2")
       Insert Into Table2 (id) Values (lnId)
   EndIf
EndScan
Is There any easy way?, for example a combination of Insert and Select
Thanks.
Luis Navas
I never forget a face, but in your case I will make an exception :-)
Next
Reply
Map
View

Click here to load this message in the networking platform