Listagg function and ORA-01489: result of string concatenation is too long
问题 When i run the following query: Select tm.product_id, listagg(tm.book_id || '(' || tm.score || ')',',') within group (order by tm.product_id) as matches from tl_product_match tm where tm.book_id is not null group by tm.product_id Oracle returns the following error: ORA-01489: result of string concatenation is too long I know that the reason it is failing is that the listagg function is trying to concatenate a the values which are greater than 4000 characters which is not supported. I have