I am quite new to the postgresql.
what is the best way to achieve this?
SELECT get_columns() FROM table_name;
get_columns(
This is how you get the columnnames in a table:
SELECT column_name FROM information_schema.columns WHERE table_name = 'test';