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: convert long raw to varchar2

Re: convert long raw to varchar2

From: Mladen Gogala <mgogala_at_adelphia.net>
Date: Sun, 01 Sep 2002 13:03:21 -0800
Message-ID: <F001.004C52EB.20020901130321@fatcity.com>


You convert LONG to CLOB and then read it into your character variable using DBMS_LOB.READ. Alternatively, you can use Java and/or EXTPROC.

On 2002.09.01 15:48 sun449 wrote:
> Dear List,
>
> This is what I'm trying to do in a stored procedure.
> 1) Read a long raw column from a table into a varchar2 variable. (Let's
> assume that each value contains a not-too-long text value.)
> 2) Parse it to create a bunch of insert statements and execute them.
>
> Step 2 is something I understand how to do. But, I've no clue how to do
> step 1. I've spent a few hours trying to figure out the tools I need for
> this. All my research turns up information on how to convert long raw to
> blob/clob etc. and the advantages of blob/clob over long raw and so on.
> My impression is that dealing with long raw is considered so basic that
> people don't even mention it :-)
>
> I'd appreciate any pointers.
>
> Thanks for your time,
> - Rao
> >
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: sun449
> INET: sun449_at_attbi.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).
>

-- 
Mladen Gogala
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Mladen Gogala
  INET: mgogala_at_adelphia.net

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 Sun Sep 01 2002 - 16:03:21 CDT

Original text of this message

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