Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Rename a column
If you cannot afford the time immediately to drop and recreate the
table, then you can do the following:
(someone pull me up if I miss a step)
Dave O'Keeffe
Tim Hall wrote:
>
> On Mon, 20 Apr 1998 21:00:35 +0800, "Lui Yuan Tze"
> <ssplyt_at_pacific.net.sg> wrote:
>
> >Hi,
> >How does one rename a table column ?
> >
> >Cheers
> >
>
> You can't. You have to rename the table, then create a new table with
> your desired new column in it and copy the data across (You can do
> this with create table <TABLE> as select * from <OLD_TABLE>)
>
> You will also have to recreate your indexes, keys, constraints etc.
>
> BTW, Message to the Gods of comp.database.oracle.* - Where is the FAQ
> for this group? Is this question in it, 'cause it comes up rather a
> lot :)
>
> Tim Hall, Indus International (was TSW International)
> tim.hall (at) iint.com
> http://www.indusworld.com
>
> Replace domain name with the iint.com before replying via email!
--
For email replys remove "n0spam." from the above address
Received on Tue Apr 21 1998 - 14:54:30 CDT
![]() |
![]() |