How to: Copy Tables
Visual FoxPro 9.0 SP2 |
How to: Copy Tables |
See Also |
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.
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic