Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Renaming a table in a database
Message
De
28/05/1999 17:45:22
 
 
À
28/05/1999 17:28:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00224160
Message ID:
00224162
Vues:
18
>I'm trying to rename a table in a database. The RENAME TABLE command only modifies the alias in the database, but does not rename the file(s) on disk.
>
>The RENAME command does not work, and in fact creates an error.
>
>Does anyone know how to do this gracefully?
>
>Thanks.
>
>Bob Bartel
>MarketWare

Bob,

I'm not quit sure about whow rename works, but you may try a statement like

select * from mytable into DATABASE mydatabase NAME mynewtable and then delete the old one. Have a look a select sql in the help file.
Vlad-Georg
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform