hi i tried to rename a column using alter table tablenem rename columnnameold columnnamenew but it gaves me the error: missing partition or subpartition keyword
what is to do? thanx for the help
I don't see any where in the 8i Complete Reference that you can rename a column. Unless someone else comes up with a better solution, I would suggest that you do a create table query to copy all of your data into a temp table, drop your table, recreate it with the new column name, and the copy all of the data back into the newly created table with the renamed column. Terry M. Hoey
you all are right but that isnt realy the solution i searched for. i allready knew about the possibility of creating a new column with the name i want and then copy the date from the old column and then drop the old column but shouldn`t there be a easy way to rename a column? i found some remarks about it how to do it with alter table but that doesnt realy work. maybe i should write to oracle to tell them they should make this possible for the future releases
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.