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: simple problem

RE: simple problem

From: Jamadagni, Rajendra <Rajendra.Jamadagni_at_espn.com>
Date: Tue, 20 Aug 2002 08:48:28 -0800
Message-ID: <F001.004BA058.20020820084828@fatcity.com>


Yes you can,

create or replace type mystrtype is table of varchar2(100)
/

select cast(multiset(sod.description) as mystrtype)   from so_trn_detail sod
where ...
/

Just make sure that the type will be able to hold the max description. BTW this works from 8i onwards ... You will have to parse the information, but it will do what you need it to do.

Raj



Rajendra Jamadagni MIS, ESPN Inc. Rajendra dot Jamadagni at ESPN dot com
Any opinion expressed here is personal and doesn't reflect that of ESPN Inc.

QOTD: Any clod can have facts, but having an opinion is an art!

-----Original Message-----
Sent: Tuesday, August 20, 2002 12:34 PM
To: Multiple recipients of list ORACLE-L

I dont think any generic SQL query can do it. What you can do is write a function which takes the SO_TRN_ID as an argument and returns the concatenated string.

Then you can use the function to get the string.

SELECT function_name(SO_TRN_ID) as DESCRIPTION from dual;

HTH
Naveen


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jamadagni, Rajendra
  INET: Rajendra.Jamadagni_at_espn.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 Tue Aug 20 2002 - 11:48:28 CDT

Original text of this message

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