- Update the table by using either PL/SQL or 3gls.

If the LONG is always 32k or less you can do this in plsql.  
If it may exceed 32k in size, plsql *cannot* manipulate it in 
any way shape or form.

If the long is 32k or less, you simply declare a variable of 
type LONG :

declare
    my_var long;
begin 
    ....


and then you can select into it:

   ...
   select my_long_column into my_var from T where condition;
   ...

Use Update here to update the value selected into the new column.

end;
/

HTH
Harsh 

-----Original Message-----
Sent: Monday, August 27, 2001 6:21 PM
To: Multiple recipients of list ORACLE-L


If I have a table that has a fields of type long, how can I 
move the data to
a varchar2(300)?

Thanks,
Mark



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mark Liggayu
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Harsh Agrawal
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to