A CREATE DOMAIN statement defines a
value range (domain).Syntax
<create_domain_statement> ::= CREATE DOMAIN <domain_name> <data_type> [<default_spec>] [<constraint_definition>]
domain_name, data_type, default_spec, constraint_definitionExplanation
The CONSTRAINT definition must not contain a
constraint name.The CREATE DOMAIN statement can be executed by all users with DBA status.
If the domain name is specified without an owner, the current user is assumed to be the owner. If you specify the domain name with an owner, this owner must be identical to the current user. In this case, the current user becomes the owner of the domain.
The name of the domain must differ from all other domain names of the current user.
If a domain is generated with a CONSTRAINT definition, the domain name is included in the
search condition as a column name.