602SQL Documentation Index  

DROP DOMAIN Statement

statement_DROP_DOMAIN ::= DROP [ IF EXISTS ] DOMAIN [scheme.]domain_name [ CASCADE | RESTRICT ]

The DROP DOMAIN statement deletes an existing domain. If this domain is used in table definitions, the statement behaviour depends on the CASCADE or RESTRICT specification:

If a domain of the specified name does not exist in the schema the error sqlstate W0137 (OBJECT_DOES_NOT_EXIST) occurs.

See