Skip to content

Instantly share code, notes, and snippets.

@amitpatelx
Created May 1, 2012 13:33
Show Gist options
  • Save amitpatelx/2567922 to your computer and use it in GitHub Desktop.
Save amitpatelx/2567922 to your computer and use it in GitHub Desktop.
PostgreSQL : Query to get all values of an enum
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