【11g】NLS_SORT(_CI附加,_AI附加)

NLS_SORT

NLS_SORT属性指示用于语言比较的排序序列。它接受“受支持的语言排序”中列出的值。可以将所有这些值修改为不区分大小写的排序,方法是将_CI附加到值中。若要执行不区分上下文和大小写的排序,请将_AI追加到该值

对于物化视图和缓存组,TimesTen建议使用NLSSORT SQL函数显式指定排序序列,而不是在连接字符串或DSN定义中使用此属性

涉及字符比较的操作支持区分大小写的语言排序序列。不区分大小写的排序可能会影响对distinct值的解释。

NLS_SORT may affect many operations. The supported operations that are sensitive to collating sequence are:

  • MINMAX

  • BETWEEN

  • =<>>>=<<=

  • DISTINCT

  • CASE

  • GROUP BY

  • HAVING

  • ORDER BY

  • IN

  • LIKE

Only BINARY sort is supported with the TIMESTEN8 character set.

NLS_SORT settings other than BINARY may have significant performance impact on character operations.

Note:

主键索引总是基于二进制排序序列。使用非二进制NLS_SORT等同性搜索不能使用主键索引

Required privilege

No privilege is required to change the value of this attribute.

Setting

Set NLS_SORT as follows:

Where to set the attribute How the attribute is represented Setting
C or Java programs or UNIX odbc.ini file NLS_SORT Specify the linguistic sort sequence or BINARY (default).
Windows ODBC Data Source Administrator NLS_SORT dropdown list Specify the linguistic sort sequence or BINARY (default).

 

Supported linguistic sorts

The tables in this section list the supported values for the NLS_SORT general connection attribute and the NLS_SORT SQL function.

只用一种语言的Monolingual linguistic sorts

Basic name Extended name
ARABIC -
ARABIC_MATCH -
ARABIC_ABJ_SORT -
ARABIC_ABJ_MATCH -
ASCII7 -
AZERBAIJANI XAZERBAIJANI
BENGALI -
BIG5 -
BINARY -
BULGARIAN -
CANADIAN FRENCH -
CATALAN XCATALAN
CROATIAN XCROATIAN
CZECH XCZECH
CZECH_PUNCTUATION XCZECH_PUNCTUATION
DANISH XDANISH
DUTCH XDUTCH
EBCDIC -
EEC_EURO -
EEC_EUROPA3 -
ESTONIAN -
FINNISH -
FRENCH XFRENCH
GERMAN XGERMAN
GERMAN_DIN XGERMAN_DIN
GBK -
GREEK -
HEBREW -
HKSCS -
HUNGARIAN XHUNGARIAN
ICELANDIC -
INDONESIAN -
ITALIAN -
LATIN -
LATVIAN -
LITHUANIAN -
MALAY -
NORWEGIAN -
POLISH -
PUNCTUATION XPUNCTUATION
ROMANIAN -
RUSSIAN -
SLOVAK XSLOVAK
SLOVENIAN XSLOVENIAN
SPANISH XSPANISH
SWEDISH -
SWISS XSWISS
THAI_DICTIONARY -
TURKISH XTURKISH
UKRAINIAN -
UNICODE_BINARY -
VIETNAMESE -
WEST_EUROPEAN XWEST_EUROPEAN



使用多种语言的Multilingual linguistic sorts

Sort name Description
CANADIAN_M Canadian French sort supports reverse secondary, special expanding characters.
DANISH_M Danish sort supports sorting uppercase characters before lowercase characters.
FRENCH_M French sort supports reverse sort for secondary.
GENERIC_M Generic sorting order which is based on ISO14651 and Unicode canonical equivalence rules but excluding compatible equivalence rules.
JAPANESE_M Japanese sort supports SJIS character set order and EUC characters which are not included in SJIS.
KOREAN_M Korean sort Hangul characters are based on Unicode binary order. Hanja characters based on pronunciation order. All Hangul characters are before Hanja characters.
SPANISH_M Traditional Spanish sort supports special contracting characters.
THAI_M Thai sort supports swap characters for some vowels and consonants.
SCHINESE_RADICAL_M Simplified Chinese sort is based on radical as primary order and number of strokes order as secondary order.
SCHINESE_STROKE_M Simplified Chinese sort uses number of strokes as primary order and radical as secondary order.
SCHINESE_PINYIN_M Simplified Chinese Pinyin sorting order.
TCHINESE_RADICAL_M Traditional Chinese sort based on radical as primary order and number of strokes order as secondary order.
TCHINESE_STROKE_M Traditional Chinese sort uses number of strokes as primary order and radical as secondary order. It supports supplementary characters.

 

你可能感兴趣的:(ocp)