Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Code of Built In LISTAGG sql function

Sandeep ManikondaJun 12 2018 — edited Jun 12 2018

Hi,

I have got a new requirement to combine data in rows to a single row. So I thought of using LISTAGG() function and achieve it.

But while using it, There is a limitation as it returns data in varchar and at max we can get only 4000 characters.

So I decided to write a function on my own so that I can give the return type as CLOB.

But while implementation I have few doubts in the way LISTAGG is handing data.

Can anyone suggest me where I can find the code for LISTAGG function so that I can use it as reference Or someone can share over reply?

Thanks

Sandeep

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 10 2018
Added on Jun 12 2018
3 comments
553 views