Created
November 14, 2018 23:48
-
-
Save gtallen1187/d5a820f1243641562fea19348b273f82 to your computer and use it in GitHub Desktop.
List all column names for a given table (psql)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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