statement
ALTER TYPE
Extends a PostgreSQL enum. A newly added value cannot be used until commit if added inside a transaction block. Example target: PostgreSQL 17. Use only the isolated starter dataset; setup and expected results are in the batch evidence.
Formal Syntax & Structure
sql syntaxsql
ALTER TYPE name ADD VALUE literalWorking Example
Example Snippetsql
CREATE TYPE lab_status AS ENUM ('new');ALTER TYPE lab_status ADD VALUE 'done';