Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Renaming column of CLOBs
Bruce C. Miller wrote:
> I have a table with a column of CLOBs that I want to rename. I can
> create the new column of CLOB type, but doing an UPDATE and SET on the
> new and old columns doesn't copy the data over properly. I guess I need
> to use the DBMS_LOB.COPY function, but I am not sure how to use this on
> a full column of data.
>
> Seems like a simple problem, but I haven't been able to find the answer
> online yet.
>
Why not issue the following:
ALTER TABLE table_name RENAME COLUMN old_name TO new_name;
HTH,
Brian
-- =================================================================== Brian Peasland oracle_dba_at_nospam.peasland.net http://www.peasland.net Remove the "nospam." from the email address to email me. "I can give it to you cheap, quick, and good. Now pick two out of the three" - UnknownReceived on Thu Jun 08 2006 - 14:36:07 CDT