Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy a column from an old table to a new table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00497359
Message ID:
00497600
Vues:
10
Hi all,
On SQL Server, I have table1 and table2. I want to copy a whole column on table1 into a column of table2. Table1 is not empty, it got data but table2 is empty. How to do that? Please, help me!

Try the following small foxpro program.
***The following small program will copy one field from 
***Table1 to table2. Table2 is empty.
close all
select 1
use table1
go top
select 2
use table2
do while not eof('table1')
 sele 1
 memvari=fieldname && The name of filed which you want to copy
 skip
 sele 2
 append blank
 replace fieldname with memvari
 loop
enddo 
close all
return
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform