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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Help Please

RE: Help Please

From: Harsh Agrawal <HARSHA_at_Amdocs.com>
Date: Mon, 27 Aug 2001 08:55:41 -0700
Message-ID: <F001.00378544.20010827085111@fatcity.com>

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: markliggayu_at_allweatherwindows.com

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: ListGuru_at_fatcity.com (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: HARSHA_at_Amdocs.com
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: ListGuru_at_fatcity.com (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). Received on Mon Aug 27 2001 - 10:55:41 CDT

Original text of this message

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