When used in an SQL or XQuery statement, a locale name consists of one or more ordered pieces of information. The Unicode version prefix, language code, script code, country/region code, and variant codes must be separated with the underscore character (_). Keywords are introduced with the commercial at symbol (@) and multiple keywords are separated by the semicolon character (;).
The behaviors associated with a locale are defined in the Common Locale Data Repository (CLDR). CLDR is a set of standards for locale data, including the formatting of dates, times, time zones, numbers, and currency values; the sorting of text; the translations for country, language, and territory names; and other variables. For more information about CLDR, see http://www.unicode.org/cldr.
As international standards evolve, the behavior associated with a locale may change. Future versions of DB2® may implement newer versions of the CLDR, which might have unexpected effects on applications or database objects. To avoid unexpected changes to locale behavior, the locale name may be prefixed with CLDR 1.5: to force future versions of DB2 to maintain CLDR version 1.5 behavior. If the CLDR version prefix is specified, at least one locale code must also be specified.
DB2 also supports CLDR version 1.2 which can be requested with the CLDR 1.2: prefix. (For compatibility with previous versions of DB2, U400_ can be used as a prefix instead of CLDR 1.2:).
As international standards evolve, the behavior associated with a locale may change. Future versions of DB2 may implement newer versions of the Unicode standard, which may have unexpected effects on applications or database objects.
Locale name | Language | Script | Country/region | Keywords | Definition |
---|---|---|---|---|---|
en_US | en | US | English, United States of America | ||
CLDR 1.5:en | en | English, fixed to CLDR version 1.5 behavior | |||
en_IE@currency=IEP | en | IE | currency= IEP | English, Ireland with Irish Pound | |
eo | eo | Esperanto | |||
fr@collation=phonebook;calendar=islamic-civil | fr | collation=phonebook calendar=islamic-civil | French (Calendar=Islamic-Civil Calendar, Collation=Phonebook Order) | ||
sr_Latn_YU@currency=USD | sr | Latn | YU | currency=USD | Serbian (Latin, Yugoslavia, Currency=US Dollar) |