parameter
asked on
delete/rename column in oracle 8i
hello guys,
is it possible for me to delete or rename the column name in the table (oracle 8i). if that possible, can anyone give the idea on how to do it.
TQ
is it possible for me to delete or rename the column name in the table (oracle 8i). if that possible, can anyone give the idea on how to do it.
TQ
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
try this:
alter table <table_name> rename column <old> to <new>;
alter table <table_name> rename column <old> to <new>;
Note: The "rename column" syntax will work in Oracle 9i, not 8i.
And then only in 9.2 not in 9.0.1.
CREATE TABLE temporary (newname, col2, col3)
AS SELECT oldname, col2, col3 FROM static
DROP TABLE static
RENAME temporary TO static;