Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Renaming column of CLOBs

Re: Renaming column of CLOBs

From: Brian Peasland <oracle_dba_at_nospam.peasland.net>
Date: Thu, 8 Jun 2006 19:36:07 GMT
Message-ID: <J0K3sF.CCD@igsrsparc2.er.usgs.gov>


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" - Unknown
Received on Thu Jun 08 2006 - 14:36:07 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US