Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Renaming a table in a database
Message
From
28/05/1999 17:45:22
 
 
To
28/05/1999 17:28:30
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00224160
Message ID:
00224162
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform