Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy table from a db to a free
Message
 
 
À
04/09/2017 04:48:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01653965
Message ID:
01653977
Vues:
49
>>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform