|
|
ALTER TYPE
Usage
Embedded/Interactive/ODBC/JDBC
Description
The
ALTER TYPEstatement is used to add method specifications and attributes to a type, or to drop method specifications and attributes from a type.It is only the creator of a type that can alter it.
Examples
CREATE TYPE person AS (firstname NCHAR VARYING(30), lastname NCHAR VARYING(30), birth DATE, sex VARCHAR(7) DEFAULT 'Unknown'); ALTER TYPE person ADD ATTRIBUTE address VARCHAR(30); ALTER TYPE person DROP ATTRIBUTE sex;Restrictions
The restrictions for
CREATE TYPEapplies toALTER TYPEalso. (See CREATE TYPE.)Add and drop attribute can only be specified for structured types.
It is not possible to add or drop attributes to a type that is used in a table definition.
It is not possible to drop an attribute if the observer or mutator method for the attribute is used in a routine, trigger, or view definition.
Standard Compliance
|
Mimer Information Technology AB Voice: +46 18 780 92 00 Fax: +46 18 780 92 40 info@mimer.se |
|
|