Skip to content

Instantly share code, notes, and snippets.

@boecko
Created August 9, 2011 22:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save boecko/1135323 to your computer and use it in GitHub Desktop.
Save boecko/1135323 to your computer and use it in GitHub Desktop.
postgresql table describe
SELECT
data_type, column_name
FROM
information_schema.columns
WHERE
table_name='table';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment