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: Khedr, Waleed <Waleed.Khedr_at_FMR.COM>
Date: Sun, 01 Sep 2002 18:08:20 -0800
Message-ID: <F001.004C536C.20020901180820@fatcity.com>


Am I missing something? this works for me:

create table testlong (c1 number,c2 long raw);

insert into testlong values (10,'0123456789abcdef');

declare
 m_c1 number;
 m_c2 varchar2(2000);
begin
 select * into m_c1,m_c2 from testlong;
 dbms_output.put_line(m_c2);
end;

-----Original Message-----
Sent: Sunday, September 01, 2002 3:48 PM To: Multiple recipients of list ORACLE-L

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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Khedr, Waleed
  INET: Waleed.Khedr_at_FMR.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 Sun Sep 01 2002 - 21:08:20 CDT

Original text of this message

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