Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: dropping a column
Ceri,
Unfortunately, Oracle does not allow you to remove a column. There may be a different way to order columns in a table if needed, but I do not know how to do that, or even why it is necessary.
But, if you need to remove a column, the only way is to re-create the table without the column(s) you wish to remove. The procedure might look something like this:
rename table blah to xxblah create table blah as .... insert into blah select ... from xxblah
Then you need to re-create foriegn keys, triggers, and re-grant rights.
I know its not pretty, but it is the only way.
HTH //Karl
Karl M. Nordquist karln_at_brightwood.com Application Development Bright Wood Corporation Madras, OregonReceived on Wed Jul 09 1997 - 00:00:00 CDT
====================================================
![]() |
![]() |