SELECT array_to_string( array( SELECT name FROM pg_settings WHERE setting = 'off' AND context = 'postmaster' ), ','); SELECT setting, array_to_string(array_agg(name), ',') FROM pg_settings WHERE setting IN ('on', 'off') GROUP BY setting;
Friday, December 7, 2012
PostgreSQL – Convert rows to string
at 9:14 AM
Labels: PostgreSQL, PostgreSQL Query, PostgreSQL Tip
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment