ALTER DOMAIN
Alters the attributes of a domain or renames a domain
DSQL, ESQL
ALTER DOMAIN domain_name
[TO new_name]
[TYPE <datatype>]
[{SET DEFAULT {<literal> | NULL | <context_var>} | DROP DEFAULT}]
[{SET | DROP} NOT NULL]
[{ADD [CONSTRAINT] CHECK (<dom_condition>) | DROP CONSTRAINT}]
<datatype> ::=
<scalar_datatype> | <blob_datatype>
<scalar_datatype> ::=
!! See Scalar Data Types Syntax !!
<blob_datatype> ::=
!! See BLOB Data Types Syntax !!
!! See also CREATE DOMAIN
Syntax !!
Parameter | Description |
---|---|
new_name |
New name for domain.The maximum length is 63 characters |
literal |
A literal value that is compatible with datatype |
context_var |
Any context variable whose type is compatible with datatype |
The ALTER DOMAIN
statement enables changes to the current attributes of a domain, including its name.You can make any number of domain alterations in one ALTER DOMAIN
statement.