zoukankan      html  css  js  c++  java
  • OCP-1Z0-053-V12.02-474题

    474.Which NLS parameter directly governs linguistic searches?

    A. NLS_SEARCH_L

    B. NLS_SORT

    C. NLS_SEARCH

    D. NLS_SORT_L

    E. None of the above

    Answer: B

    答案解析:

    参考:http://docs.oracle.com/cd/E11882_01/server.112/e40402/initparams155.htm#REFRN10127


    NLS_SORT specifies the collating sequence for character value comparison in various SQL operators and clauses, for example, ORDER BYGROUP BY, comparison conditions (=<><=>=), INBETWEENLIKEMIN/MAXGREATEST/LEAST, and INSTR.

    • If the value is BINARY, then comparison is based directly on byte values in the binary encoding of the character values being compared. The ordering depends on the character set of the compared values, which is either the database character set (for VARCHAR2CHARLONG, and CLOB) or the national character set (for NVARCHAR2NCHAR, and NCLOB).

    • If the value is a named linguistic sort, then comparison is defined by this sort. A linguistic sort uses various rules to achieve ordering expected by speakers of one or more natural languages. This is usually the same ordering that is used in dictionaries and/or telephone directories in those languages.

    The exact operators and query clauses that obey the NLS_SORT parameter depend on the value of the NLS_COMP parameter. If an operator or clause does not obey the NLS_SORT value, as determined by NLS_COMP, the collation used is BINARY.

    The BINARY comparison is faster and uses less resources than any linguistic comparison but for text in a natural language, it does not provide ordering expected by users.

    The value of NLS_SORT affects execution plans of queries. Because a standard index cannot be used as a source of values sorted in a linguistic order, an explicit sort operation must usually be performed instead of an index range scan. A functional index on the NLSSORT function may be defined to provide values sorted in a linguistic order and reintroduce the index range scan to the execution plan.

  • 相关阅读:
    hihocoder [Offer收割]编程练习赛14 投掷硬币
    hihocoder [Offer收割]编程练习赛14 小Hi和小Ho的礼物
    CodeForces
    [HNOI2004] 打砖块
    CodeForces
    hdu4028 The time of a day[map优化dp]
    hdu5009 Paint Pearls[指针优化dp]
    hdu4719 Oh My Holy FFF[线段树优化dp]
    hdu1024 Max Sum Plus Plus[降维优化好题(貌似以后可以不用单调队列了)]
    hdu3709 Balanced Number[数位dp]
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13316368.html
Copyright © 2011-2022 走看看