SELECT column name and datatype in Postgres

PHOTO EMBED

Wed Aug 23 2023 08:06:03 GMT+0000 (Coordinated Universal Time)

Saved by @ClemensBerteld #sql

SELECT column_name, data_type
--SELECT CONCAT(column_name, ',')
FROM   information_schema.columns
WHERE  table_name = 'foo'
ORDER  BY ordinal_position;
content_copyCOPY