Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to copy a line
Message
 
À
28/03/2006 16:21:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01108599
Message ID:
01108615
Vues:
9
>i do a select from a table and i want to copy each line to another table with the same structure. i want to copy it line per line
>
>
>how can i do it ???
>
>
>thanks

Why line per line?
INSERT INTO MyNewTable (field list);
       SELECT (field list) FROm MyTable WHERE ....
If you realy need to do this line per line
SELECT MyOldTable
SCAN
   SCATTER NAME oTest
   INSERT INTO MyNewTable FROM NAME oTest
ENDSCAN
See also GATHER command in Help
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform