Distinct Data Types
A DISTINCT data type is a user-defined data type that
is based on one of the following data types:
- a built-in type (including built-in opaque types)
- a user-defined opaque type
- a named ROW type
- an existing DISTINCT type.
The base type of a DISTINCT type cannot be any of the
following data types:
- an unnamed ROW type
- a LIST, MULTISET, SET, or generic COLLECTION type.
The DISTINCT type inherits the length and the alignment of its base type in storage. HCL OneDB™ automatically creates explicit casts between the DISTINCT type and its base type. To create a DISTINCT type, you must use the CREATE DISTINCT TYPE statement. (For more information, see CREATE DISTINCT TYPE statement.)