PostgreSQL DESCRIBE TABLE

PHOTO EMBED

Fri Jul 23 2021 21:11:57 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira

SELECT 
   table_name, 
   column_name, 
   data_type 
FROM 
   information_schema.columns
WHERE 
   table_name = 'city';
Code language: SQL (Structured Query Language) (sql)
content_copyCOPY

https://www.postgresqltutorial.com/postgresql-describe-table/