Describe table in postgres

select column_name, data_type, character_maximum_length, column_default, is_nullable
from INFORMATION_SCHEMA.COLUMNS where table_name = 'table'

Leave a Reply

Your email address will not be published. Required fields are marked *