I want to limit string_agg result like:-
SELECT string_agg(name, ',') FROM table_a WHERE 'condition' LIMIT 5
But the limit part is not working. Is there any other syntax for limiting string_agg results.
I want to limit string_agg result like:-
SELECT string_agg(name, ',') FROM table_a WHERE 'condition' LIMIT 5
But the limit part is not working. Is there any other syntax for limiting string_agg results.