Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Insert from Other Table?
Message
From
11/01/2001 11:09:48
 
 
To
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:
00462266
Views:
28
How about:

Select * From BigTable Where CandKey Not In (Select CandKey From SmallTable) Into Cursor TmpCursor

jcDBFName = DBF()

Select SmallTable
Append From (jcDBFName)

In my experience sometimes by issuing a SQL statement like that what you really get is a FILTER of Bigtable. In that case you'll be doing the APPEND from Bigtable and not from the CURSOR, so just to be safe my SQLs for this kind of situation look like

Select *, '' as cFld From Bigtable ......

just to force the creation of the CURSOR.

Iraldo.
Previous
Reply
Map
View

Click here to load this message in the networking platform