Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 208 Bytes

list-all-values-for-custom-enum-postgres.md

File metadata and controls

13 lines (9 loc) · 208 Bytes

List all values of a custom enum in Postgres

Posted on 23 May, 2023

select enum_range(null::my_enum)

To list in separate rows

select unnest(enum_range(null, null::my_enum));