Page History
...
The Copy_Table command will copy a table only. It will not attach the table to the current session or add the table to the Database Definition. To attach the table refer to the Attach_Table command. To define the database refer to the Define_Database command.
See also
Delete_Index, Get_Status, Attach_Table, Alias_Table, Rename_Table, Copy Table Dialog
Example
Code Block |
---|
/* Copies CAR_PARTS_BAK to CAR_PARTS in volume E:\DAT, database INVENTORY. No locking is performed. The original table is deleted after the copy is performed. If a table with the same name exists, it is overwritten. */ declare subroutine Set_Status, Copy_Table declare function Get_Status status = "" Set_Status(0) Copy_Table("CAR_PARTS_BAK", "E:\DAT", "INVENTORY", "CAR_PARTS", "0", "1", "1", "0",status,"0") If Get_Status(ErrCodes) Then GoSub ErrorHandling End |