Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Rename a column
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! Received on Mon Apr 20 1998 - 08:21:48 CDT
![]() |
![]() |