NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
C-31
The LC_CTYPE Section of a Collation Definition
If element is an ellipsis, it specifies the ordered series of characters in the
character set between the preceding element specified in the collation definition
and the following element in the collation definition. Neither the preceding
element nor the following element can be an ellipsis.
If element is UNDEFINED, it specifies all characters in the character set not
previously included in the ordered list (either directly or with an ellipsis). You can
use UNDEFINED only as the last element before order_end. The only weight
allowed with UNDEFINED is IGNORE.
weight
is a char or element that appears earlier in the ordered list and that specifies a
relative position in the collating sequence as a weight for the corresponding
element. weight can also be an ellipsis (...) or the keyword IGNORE.
If you omit weight for a collation element, that element represents itself in the
collation sequence.
If weight is an ellipsis, element must also be an ellipsis and each character
specified by the ellipsis in the element column has the unique weight for that
character.
If weight is IGNORE, SQL treats the corresponding element as if it does not
exist during a comparison between two strings. For example, specifying the
following three element [weight] pairs:
<a>
<b> IGNORE
<c>
causes SQL to treat the strings “aacba” and “aaca” as equal in a comparison that
uses the collation.
Note that each character in a given character set (ISO88591, for example), has a
unique value as a physical weight. The values of the physical and logical weights of
a character may differ when a user specifies a weight in a collating sequence.
order_end
ends the ordered list of elements in the collation.
END LC_COLLATE
ends the LC_COLLATE section.
The LC_CTYPE Section of a Collation Definition
The LC_CTYPE section defines character classes and case conversion rules.
The LC_CTYPE section can appear only once in a collation definition. Except for the
line that begins with class-name, each of the five types of lines shown in the syntax