• <bdo id='3yw1H'></bdo><ul id='3yw1H'></ul>
    <tfoot id='3yw1H'></tfoot>
  1. <legend id='3yw1H'><style id='3yw1H'><dir id='3yw1H'><q id='3yw1H'></q></dir></style></legend>

    <small id='3yw1H'></small><noframes id='3yw1H'>

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

      oracle sql中join关键字和inner join关键字有什么区别?

      what is the difference between join keyword and inner join keyword in oracle sql?(oracle sql中join关键字和inner join关键字有什么区别?)

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

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

              • 本文介绍了oracle sql中join关键字和inner join关键字有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我找不到关于关键字 join 的文档,但我在网上看到了使用它的示例.

                I can't find documentations on the key word join but I saw examples on the web using it.

                我在 Oracle hr 模式中做了一些实验,我有表 departments:

                I was doing some experiment with it in Oracle hr schema, where I have table departments:

                • deparment_name
                • manager_id
                • location_id

                employees:

                • first_name
                • employee_id

                和表locations:

                • location_id
                • city

                查询应返回部门名称,部门经理的名字,部门所在城市.

                Query should return the department_name, first_name of the manager of the department, and the city where the department is located.

                与使用关键字inner join

                带有join的代码:

                select d.department_name, e.first_name,l.city
                from departments d
                   join employees e on d.manager_id=e.employee_id
                   join locations l on d.location_id=l.location_id
                

                带有内连接的代码:

                select d.department_name, e.first_name,l.city
                from departments d
                   inner join employees e on d.manager_id=e.employee_id
                   inner join locations l on d.location_id=l.location_id
                

                这两种情况是否有区别,或者我只是偶然发现它们返回相同结果的情况?

                Is there a difference between the two condition, or am I just happen to stumble on a situation where they return the same results?

                推荐答案

                • 遵循 1992 ANSI SQL 参考,INNER 是可选的:
                • 查询表达式 179 7.5 - 连接表

                  Query expressions 179 7.5 - joined table

                  3) 如果指定了合格的联接联接类型未指定指定,则 INNER 是隐式的.

                  3) If a qualified join is specified and a join type is not specified, then INNER is implicit.

                  • 遵循 Oracle 标准(9i 以后),INNER 前缀也是可选的.在 9i 之前,Oracle 不遵循 ANSI 规则,甚至不支持 JOIN 语法.
                    • Following Oracle Standards (9i onward), the INNER prefix is also optional. Before 9i, Oracle didn't follow ANSI rules, and didn't even support JOIN syntax.
                    • 这篇关于oracle sql中join关键字和inner join关键字有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                Building a comma separated list?(建立一个逗号分隔的列表?)
                Errors in SQL Server while importing CSV file despite varchar(MAX) being used for each column(尽管每列都使用了 varchar(MAX),但在导入 CSV 文件时 SQL Server 中出现错误)
                How can I import an Excel file into SQL Server?(如何将 Excel 文件导入 SQL Server?)
                Export table to file with column headers (column names) using the bcp utility and SQL Server 2008(使用 bcp 实用程序和 SQL Server 2008 将表导出到带有列标题(列名称)的文件)
                Concat field value to string in SQL Server(将字段值连接到 SQL Server 中的字符串)
                SQL Server Bulk insert of CSV file with inconsistent quotes(SQL Server 批量插入带有不一致引号的 CSV 文件)
              • <tfoot id='6t09T'></tfoot>
                  <bdo id='6t09T'></bdo><ul id='6t09T'></ul>
                • <i id='6t09T'><tr id='6t09T'><dt id='6t09T'><q id='6t09T'><span id='6t09T'><b id='6t09T'><form id='6t09T'><ins id='6t09T'></ins><ul id='6t09T'></ul><sub id='6t09T'></sub></form><legend id='6t09T'></legend><bdo id='6t09T'><pre id='6t09T'><center id='6t09T'></center></pre></bdo></b><th id='6t09T'></th></span></q></dt></tr></i><div id='6t09T'><tfoot id='6t09T'></tfoot><dl id='6t09T'><fieldset id='6t09T'></fieldset></dl></div>
                    <tbody id='6t09T'></tbody>

                    <small id='6t09T'></small><noframes id='6t09T'>

                        • <legend id='6t09T'><style id='6t09T'><dir id='6t09T'><q id='6t09T'></q></dir></style></legend>