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: Concatenating multiple rows?

Re: Concatenating multiple rows?

From: Daniel Morgan <damorgan_at_exxesolutions.com>
Date: Tue, 24 Jun 2003 13:23:35 -0700
Message-ID: <3EF8B347.DEF1B55F@exxesolutions.com>


"D. Alvarado" wrote:

> Hi,
> Is it possible to concatenate multiple rows of data in a single
> select statement. For example, if my table was
>
> FIELD1
> ------
> aaa
> bbb
> ccc
>
> is there a way in Oracle to have a single select statement that could
> produce
>
> 'aaa,bbb,ccc'?
>
> Thanks - Dave

Unless you can yuse CONNECT BY you will need to use a PL/SQL loop.

--
Daniel Morgan
http://www.outreach.washington.edu/extinfo/certprog/oad/oad_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Tue Jun 24 2003 - 15:23:35 CDT

Original text of this message

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