Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Insert from Other Table?
Message
De
11/01/2001 11:09:48
 
 
À
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:
00462266
Vues:
30
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform