create or rename table or database
Posted by:
Richard
Date: August 13, 2004 09:51AM
Hi,
in the database I have 3 tables t1, t2, t3.
I want to make 3 new empty tables with the same structure.
Insert data. RENAME the 3 in use to 't(x)_old' and RENAME the new to t(x). Of course I can do a CREATE and RENAME .
I saw " CREATE TABLE new_table (...); " in the MySQL Reference manual, which should create a new empty table with the same structure. But it doesn't work. How do you have to refer to the old table.
Is it possible to RENAME a database? Or even create the whole database with the same structure as the old database?
Richard
Subject
Written By
Posted
create or rename table or database
August 13, 2004 09:51AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.