RENAME a table? Is it possible? [message #60503] |
Wed, 11 February 2004 05:47 |
Patrick Tahiri
Messages: 119 Registered: January 2004
|
Senior Member |
|
|
Hi,
Is it possible in Oracle 8i to RENAME a table?
Something like:
ALTER TABLE tbl_name RENAME table_new_name;
??
If yes, what happens to the depending objects (Indexes, Triggers, Constraints)?
I'm looking in my Oracle books and documentation but I can't find anything about it (just about renaming a column)!
Thank you for your help!
Regards,
Patrick Tahiri.
|
|
|
Re: RENAME a table? Is it possible? [message #60506 is a reply to message #60503] |
Wed, 11 February 2004 06:26 |
Thiru
Messages: 1089 Registered: May 2002
|
Senior Member |
|
|
Are you sure ? , the following is there in the 8i doc
"
Rename a Database Object Example
To change the name of table dept to emp_dept, issue the following statement:
RENAME dept TO emp_dept;
"
Do you want to try out its effect on indexes,constraints and triggers , just as an exercise ?
-Thiru
|
|
|
Re: RENAME a table? Is it possible? [message #60507 is a reply to message #60506] |
Wed, 11 February 2004 06:48 |
Patrick Tahiri
Messages: 119 Registered: January 2004
|
Senior Member |
|
|
Hi Thiru!
So kinf of you!
No, I was asking if it was the correct syntax to RENAME a table! And it was aparently not!
I will then try the RENAME command:
RENAME table_name TO table_new_name;
I will test it with some constraints, indexes and triggers just to see the effects on such an operation!
Again, many thanks!
Regards,
Patrick Tahiri.
|
|
|
|
|