Comma-separated values of a column

suggest change
SELECT
    string_agg(T.<COLUMN_NAME>, ',')
FROM
    <SCHEMA_NAME>.<TABLE_NAME> T

string_agg is an aggregate, so group the other selected columns. It skips nulls. Order inside the list is unspecified unless you add ORDER BY inside string_agg.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents