Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cristopher-rodrigues/5917ca7bc0304ad0265ac4c22b43995d to your computer and use it in GitHub Desktop.
Save cristopher-rodrigues/5917ca7bc0304ad0265ac4c22b43995d to your computer and use it in GitHub Desktop.
POSTGRES DESCRIBE TABLE
select column_name, data_type, character_maximum_length
from INFORMATION_SCHEMA.COLUMNS where table_name = '<name of table>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment