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: Rows Data

Re: Rows Data

From: Brian Peasland <dba_at_remove_spam.peasland.com>
Date: Mon, 10 May 2004 16:18:46 GMT
Message-ID: <409FAB66.32E89003@remove_spam.peasland.com>


David wrote:
>
> thank for your answer.
>
> I use
>
> UPDATE <table_name>
> SET <A> = (
> SELECT <B>
> FROM <table_name>);
>
> but gives an error: "Not a valid use for a LONG camp ".
>
> A = LONG
> B = CLOB
>
> How I can do it ?
> Can I transform A type, after update the rows, and finally change it to LONG
> ?

Try the following:

UPDATE <table_name>
SET A = (
  SELECT TO_LOB(B)
  FROM <table_name>);

HTH,
Brian

-- 
===================================================================

Brian Peasland
dba_at_remove_spam.peasland.com

Remove the "remove_spam." from the email address to email me.


"I can give it to you cheap, quick, and good. Now pick two out of
 the three"
Received on Mon May 10 2004 - 11:18:46 CDT

Original text of this message

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