DROP TYPE

Function

DROP TYPE deletes a user-defined data type. Only the type owner has permission to run this statement.

Syntax

1
DROP TYPE [ IF EXISTS ] name [, ...] [ CASCADE | RESTRICT ]

Parameter Description

Examples

Delete the compfoo type.

1
DROP TYPE compfoo cascade;

Helpful Links

ALTER TYPE, CREATE TYPE