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

Home -> Community -> Usenet -> c.d.o.misc -> Re: SQLPLUS: how to make results appear in a line fashion

Re: SQLPLUS: how to make results appear in a line fashion

From: R. Nightingale <nighr_at_hotmail.com>
Date: Sun, 1 Aug 1999 17:23:00 -0500
Message-ID: <7o2m2a$44u$3@hyperion.nitco.com>


You're going to have to declare string variable and a cursor. For values after the first one, prepend a comma before appending the return value.
The syntax is an exercise for the student. --rn.

AleX <korrozia_at_my-deja.com> wrote in message news:7niumh$83u$1_at_nnrp1.deja.com...
> Hi!
>
> I need to have this done.
>
> I'm in sqlplus 8.0.5
>
> I have a query like this:
>
>
> FLO> select col2 from joe;
>
> COL2
> -----
> 2
> xzc
> ccxc
> cxcx
> xcx
> zxz
>
> 6 rows selected.
>
> Is there a way to make the results appear like this
>
>
> FLO> select col2 from joe;
>
> COL2
> -----
> 2, xzc, ccxc, cxcx, xcx, zxz
>
> 6 rows selected.
>
> Any help is appreciated!
>
> --
> Alex Shterenberg
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Sun Aug 01 1999 - 17:23:00 CDT

Original text of this message

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