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: sql

RE: sql

From: Stephen Lee <Stephen.Lee_at_DTAG.Com>
Date: Tue, 06 May 2003 08:21:44 -0800
Message-ID: <F001.005912E6.20030506082144@fatcity.com>

Here's a non-elegant, brute force approach

set serveroutput on
declare

   v_text varchar2(4000) := NULL;
   cursor c1 is select * from crap order by id, des;

Output looks like

1 test1_1 test1_2 test1_3
2 test2_1 test2_2 test2_3
3 test3_1 test3_2 test3_3
4 test4_1 test4_2 test4_3


> -----Original Message-----
> i have this query and result set:
>
> select id, description from x where id = 1
>
> id Description
> 1 test1
> 1 test2
> 1 test3
>
> Is there a way i can retrive the above in this format:
>
> id Description
>
> 1 test1 test2 test3
>
>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Stephen Lee
  INET: Stephen.Lee_at_DTAG.Com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
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 May 06 2003 - 11:21:44 CDT

Original text of this message

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