Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Compare 2 tables
Message
De
03/08/2004 05:47:10
 
 
À
03/08/2004 04:43:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00930260
Message ID:
00930275
Vues:
18

hi,

i want to compare between 2 tabels,

table 1 contain accumulated data,table 2 contain new data,

if table2.customer_no =table1.customer_no
delete from table2
..
append table2 to table1

thanks.


In VFP8
INSERT INTO table1 ;
(SELECT * FROM table2 WHERE customer_no NOT IN (SELECT customer_no FROM table1)
* DELETE FROM table2 && generic
* ZAP IN table2 && if you have exclusive access
* USE IN table2 && if it is a temp cursor
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform