Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exchanging records from two tables
Message
 
 
À
02/07/2006 05:52:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01133308
Message ID:
01133329
Vues:
14
>How to exchange records between two tables which have exactly the same structure with exactly the same number of records in a snap?

Something like
USE table1 IN 0 EXCLUSIVE 
USE table2 IN 0 EXCLUSIVE 
SELECT * FROM table1 INTO CURSOR crsTemp
SELECT table1
ZAP
INSERT INTO table1 SELECT * FROM table2
SELECT table2
ZAP
INSERT INTO table1 SELECT * FROM crsTemp
USE IN table1
USE IN table2
USE IN crsTemp
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform