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: Can we make a single line to return all the values

Re: Can we make a single line to return all the values

From: Damien Salvador <damien.salvador_at_via.ecp.fr>
Date: 10 Nov 2001 11:02:51 GMT
Message-ID: <slrn9uq2ar.tve.damien.salvador@zen.via.ecp.fr>


On Sat, 10 Nov 2001 10:08:19 GMT, Radu Lascae <r.nospam.lascae_at_wanadoo.nl> a écrit:
>Yes, you can. Not in SQL though - as you can't determine in advance the
>number of Look_Id's. You'll need a function, using a cursor to loop through
>the records and concatenate the results. Then use the function in an SQL
>statement. This what you want?
>

Beware of the max length authorized, though. For a VarChar2, it's 4000 chars when passing through sqlplus, ado ...
(between stored procedure and functions it's 32k)

-- 
Damien
Received on Sat Nov 10 2001 - 05:02:51 CST

Original text of this message

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