Created
May 1, 2012 13:33
-
-
Save amitpatelx/2567922 to your computer and use it in GitHub Desktop.
PostgreSQL : Query to get all values of an enum
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 e.enumlabel | |
FROM pg_enum e | |
JOIN pg_type t ON e.enumtypid = t.oid | |
WHERE t.typname = 'yourenumname' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment