Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Can I concatenate several rows without a procedure?
My guess the output will be limited to 4000 characters.
Waleed
-----Original Message-----
Sent: Wednesday, October 22, 2003 12:24 AM
To: Multiple recipients of list ORACLE-L
Very impressive! I will definitly try this.
Thanks Again,
Jake
On Tue, Oct 21, 2003 at 06:44:25PM -0800, Larry Elkins wrote:
> Stephane,
>
> Pretty slick trick!!! But I can't believe that you, of all people, didn't
> throw in an analytic just to confuse things even more, plus, avoid that
> second pass on sliced_kipling ;-)
>
> SQL> l
> 1 select translate(ltrim(text, '/'), '/', ' ') verse
> 2 from (select text, row_number() over (partition by verse order by
> verse, lvl desc) rn
> 3 from (select verse, level lvl, sys_connect_by_path(chunk, '/')
> text
> 4 from sliced_kipling
> 5 connect by verse = prior verse
> 6 and piece - 1 = prior piece))
> 7* where rn = 1
> SQL> /
>
> VERSE
>
-- Thanks, Jake Johnson jake_at_plutoid.com ______________________________________________________________________ Plutoid - http://www.plutoid.com - Shop Plutoid for the best prices on Rims, Tires, and Wheel Packages. -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Jake Johnson INET: jake_at_plutoid.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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Khedr, Waleed INET: Waleed.Khedr_at_FMR.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 Wed Oct 22 2003 - 09:04:26 CDT
![]() |
![]() |