Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Reading column into a string variable
zomer wrote:
> Hi,
> I need to read all entries of a column into a varchar variable. There
> are about 100 entries.... how can i do it in PL/SQL?
>
> Table
> Name
> alex
> brad
> cynthia
> .
> .
> .
> .
> zomer
>
> Anticipated output
> alex,brad,cynthia.....,zomer
Probably you should create a plsql table and do a bulk collect into the table. Include a where clause that includes the order by so that it is sorted in the order you desire.
>
> Thanks.
Received on Mon Nov 13 2006 - 14:39:43 CST
![]() |
![]() |