You can copy tables in two steps:
-
Copy the table structure.
-
Copy the data from the source table to the destination table.
To copy the structure of a table
-
Open the source table with the USE command.
-
Copy the source table structure and create the destination table by choosing one of the following:
-
To copy only the table structure not including information such as default values, triggers, and validation rules, use the COPY STRUCTURE command.
-OR-
-
To copy the table structure including information such as default values, triggers, and validation rules, use the COPY STRUCTURE EXTENDED command.
-
For more information, see USE Command, COPY STRUCTURE Command, and COPY STRUCTURE EXTENDED Command.
To copy data between tables
-
Open the source table and destination table with the USE command.
-
Copy the data from the source table to the destination table with the APPEND FROM command.
For more information, see USE Command and APPEND FROM Command.
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08