The following table lists the operators that support operations on enumerated values.
Parameters to these operators are either enumerated values (literals) or variables. The
T'VAL
notation is used for non-unique literals. For example:
● A user-defined typeDAY
is defined as enumerated type with the following values:
●
● Another UDT can be defined as{SUN, MON,TUE}
.
● The order of enumerated values within the subtype should be defined as a segment of the original type. For example,MON
must always be greater thanSUN
.Ordinal values start with 0 (zero). The ordinal of the values of a subtype is defined by the position in the original type definition. For example: