Skip to content

Instantly share code, notes, and snippets.

@gtallen1187
Created November 14, 2018 23:48
Show Gist options
  • Save gtallen1187/d5a820f1243641562fea19348b273f82 to your computer and use it in GitHub Desktop.
Save gtallen1187/d5a820f1243641562fea19348b273f82 to your computer and use it in GitHub Desktop.
List all column names for a given table (psql)
SELECT *
FROM information_schema.columns
WHERE table_schema = 'your_schema'
AND table_name = 'your_table'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment