PostgreSQL · Type Alias
ENUM
PostgreSQL enum types define a fixed, ordered set of allowed labels. Create one with CREATE TYPE, then use it in tables and functions.
Last updated
Syntax
CREATE TYPE type_name AS ENUM ('value1', 'value2', ...);In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
CREATE TYPEALTER TYPEenum_firstenum_lastenum_rangepg_enum