• <small id='qDWB8'></small><noframes id='qDWB8'>

  • <i id='qDWB8'><tr id='qDWB8'><dt id='qDWB8'><q id='qDWB8'><span id='qDWB8'><b id='qDWB8'><form id='qDWB8'><ins id='qDWB8'></ins><ul id='qDWB8'></ul><sub id='qDWB8'></sub></form><legend id='qDWB8'></legend><bdo id='qDWB8'><pre id='qDWB8'><center id='qDWB8'></center></pre></bdo></b><th id='qDWB8'></th></span></q></dt></tr></i><div id='qDWB8'><tfoot id='qDWB8'></tfoot><dl id='qDWB8'><fieldset id='qDWB8'></fieldset></dl></div>

      <legend id='qDWB8'><style id='qDWB8'><dir id='qDWB8'><q id='qDWB8'></q></dir></style></legend>
      <tfoot id='qDWB8'></tfoot>

          <bdo id='qDWB8'></bdo><ul id='qDWB8'></ul>

        oracle区分大小写的原因?

        Reason why oracle is case sensitive?(oracle区分大小写的原因?)
      1. <i id='iQG25'><tr id='iQG25'><dt id='iQG25'><q id='iQG25'><span id='iQG25'><b id='iQG25'><form id='iQG25'><ins id='iQG25'></ins><ul id='iQG25'></ul><sub id='iQG25'></sub></form><legend id='iQG25'></legend><bdo id='iQG25'><pre id='iQG25'><center id='iQG25'></center></pre></bdo></b><th id='iQG25'></th></span></q></dt></tr></i><div id='iQG25'><tfoot id='iQG25'></tfoot><dl id='iQG25'><fieldset id='iQG25'></fieldset></dl></div>

        <tfoot id='iQG25'></tfoot>
            <legend id='iQG25'><style id='iQG25'><dir id='iQG25'><q id='iQG25'></q></dir></style></legend>
              <bdo id='iQG25'></bdo><ul id='iQG25'></ul>
              • <small id='iQG25'></small><noframes id='iQG25'>

                    <tbody id='iQG25'></tbody>
                  本文介绍了oracle区分大小写的原因?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Oracle 区分大小写而 SQL Server 和 MySQL 等其他软件默认不区分大小写是否有原因?

                  我知道有一些方法可以启用/禁用区分大小写,但 oracle 与其他数据库的不同似乎很奇怪.

                  I know that there are ways to enable/disable case sensitivity, but it just seems weird that oracle differs from other databases.

                  我也在尝试了解区分大小写的原因.我可以看到Table"和TaBlE"在哪些地方可以被视为等效而不是等效的,但是是否有区分大小写实际上会产生影响的示例?

                  I'm also trying to understand reasons for case sensitivity. I can see where "Table" and "TaBlE" can be considered equivalent and not equivalent, but is there an example where case sensitivity would actually make a difference?

                  我对数据库有点陌生,目前正在上课.

                  I'm somewhat new to databases and am currently taking a class.

                  推荐答案

                  默认情况下,Oracle 标识符(表名、列名等)不区分大小写不区分.您可以通过在它们周围使用引号使它们区分大小写(例如:SELECT * FROM "My_Table" WHERE "my_field" = 1).SQL 关键字(SELECTWHEREJOIN 等)始终不区分大小写.

                  By default, Oracle identifiers (table names, column names, etc.) are case-insensitive. You can make them case-sensitive by using quotes around them (eg: SELECT * FROM "My_Table" WHERE "my_field" = 1). SQL keywords (SELECT, WHERE, JOIN, etc.) are always case-insensitive.

                  另一方面,字符串比较区分大小写敏感(例如:WHERE field='STRING' 将仅匹配 'STRING') 默认情况下.您可以通过将 NLS_COMPNLS_SORT 设置为适当的值来使它们不区分大小写(例如:LINGUISTICBINARY_CI,分别).

                  On the other hand, string comparisons are case-sensitive (eg: WHERE field='STRING' will only match columns where it's 'STRING') by default. You can make them case-insensitive by setting NLS_COMP and NLS_SORT to the appropriate values (eg: LINGUISTIC and BINARY_CI, respectively).

                  注意:在查询数据字典视图(例如:dba_tables)时,如果您创建的名称不带引号,则名称将为大写,并且将适用第二段中解释的字符串比较规则在这里.

                  Note: When inquiring data dictionary views (eg: dba_tables) the names will be in upper-case if you created them without quotes, and the string comparison rules as explained in the second paragraph will apply here.

                  默认情况下,某些数据库(Oracle、IBM DB2、PostgreSQL 等)将执行区分大小写的字符串比较,其他数据库不区分大小写(SQL Server、MySQL、SQLite).这无论如何都不是标准的,所以请注意您的数据库设置是什么.

                  Some databases (Oracle, IBM DB2, PostgreSQL, etc.) will perform case-sensitive string comparisons by default, others case-insensitive (SQL Server, MySQL, SQLite). This isn't standard by any means, so just be aware of what your db settings are.

                  这篇关于oracle区分大小写的原因?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Oracle PL/SQL - Raise User-Defined Exception With Custom SQLERRM(Oracle PL/SQL - 使用自定义 SQLERRM 引发用户定义的异常)
                  Oracle: is there a tool to trace queries, like Profiler for sql server?(Oracle:是否有跟踪查询的工具,例如用于 sql server 的 Profiler?)
                  SELECT INTO using Oracle(使用 Oracle SELECT INTO)
                  How to handle Day Light Saving in Oracle database(如何在 Oracle 数据库中处理夏令时)
                  PL/SQL - Use quot;Listquot; Variable in Where In Clause(PL/SQL - 使用“列表Where In 子句中的变量)
                  Oracle: Import CSV file(Oracle:导入 CSV 文件)
                  <legend id='SIe09'><style id='SIe09'><dir id='SIe09'><q id='SIe09'></q></dir></style></legend>

                          <bdo id='SIe09'></bdo><ul id='SIe09'></ul>

                          <i id='SIe09'><tr id='SIe09'><dt id='SIe09'><q id='SIe09'><span id='SIe09'><b id='SIe09'><form id='SIe09'><ins id='SIe09'></ins><ul id='SIe09'></ul><sub id='SIe09'></sub></form><legend id='SIe09'></legend><bdo id='SIe09'><pre id='SIe09'><center id='SIe09'></center></pre></bdo></b><th id='SIe09'></th></span></q></dt></tr></i><div id='SIe09'><tfoot id='SIe09'></tfoot><dl id='SIe09'><fieldset id='SIe09'></fieldset></dl></div>
                        • <tfoot id='SIe09'></tfoot>
                            <tbody id='SIe09'></tbody>
                        • <small id='SIe09'></small><noframes id='SIe09'>