Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy table from a db to a free
Message
 
 
To
04/09/2017 04:48:14
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01653965
Message ID:
01653977
Views:
48
>>>Look at the COPY TO command; the COPY FILE command makes a copy of the file.
>>
>>Thank you. I also found that I can use a SQL Select as
>>
>>
>>select * from mytable into table ("anothername")
>>
>
>true, but if you need to tweak slightly in maintainance, for instance also copying index file or switching type of file the clauses of copy to command handle the *table* in a more object oriented way. SQL select is only better if you need to add/tweak some columns

In this case I need to "copy" the records to a "backup" table. The original table is then zapped and re-filled. And just in case, I like to have a backup of this table. I usually name the backup table as the real table name + date time stamp.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform