Renames a user-defined domain or data type.
ALTER { DOMAIN | DATATYPE } user-type RENAME new-name
When you execute this statement, the name of the user-defined domain or data type is updated in the ISYSUSERTYPE system table.
You must be the owner of the domain, or have one of the following privileges:
Automatic commit.
Not in the standard. The ALTER DOMAIN statement is optional ANSI/ISO SQL Feature F711. However, in the standard, ALTER DOMAIN can specify modified DEFAULT or CHECK constraint clauses for an existing domain. Neither of these operations are supported in the software. Feature F711 does not support the renaming of a domain.
The following example renames the fictitious Address domain to MailingAddress:
ALTER DOMAIN Address RENAME MailingAddress;