<legend id='AVRBw'><style id='AVRBw'><dir id='AVRBw'><q id='AVRBw'></q></dir></style></legend>
  1. <tfoot id='AVRBw'></tfoot>

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

      <small id='AVRBw'></small><noframes id='AVRBw'>

      SQLite 支持哪些连接?

      What joins does SQLite support?(SQLite 支持哪些连接?)
        <bdo id='nhQIB'></bdo><ul id='nhQIB'></ul>

        1. <tfoot id='nhQIB'></tfoot>

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

            <tbody id='nhQIB'></tbody>

          <small id='nhQIB'></small><noframes id='nhQIB'>

              • 本文介绍了SQLite 支持哪些连接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                根据join-op 语法,SQLite 有 13 个不同的 join 语句:

                According to the join-op syntax, SQLite has 13 distinct join statements:

                ,
                JOIN
                LEFT JOIN
                OUTER JOIN
                LEFT OUTER JOIN
                INNER JOIN
                CROSS JOIN
                NATURAL JOIN
                NATURAL LEFT JOIN
                NATURAL OUTER JOIN
                NATURAL LEFT OUTER JOIN
                NATURAL INNER JOIN
                NATURAL CROSS JOIN
                

                它们都是独一无二的吗?哪些是等价的?

                Are they all unique? Which are equivalent?

                推荐答案

                SQLite 语法与 SQL-92 规范,据此,以下内容是非法的:

                The SQLite grammar is a bit different from the SQL-92 spec's, according to which, the following are illegal:

                *OUTER JOIN
                *NATURAL OUTER JOIN
                *NATURAL CROSS JOIN
                

                前两个,因为一个,为了包含OUTER,还必须包含一个代码> 在它之前.最后,因为 NATURAL 只能出现在 的,而不是 的.这些似乎不符合任何规范,因此最好避免使用它们.

                The first two, because a <join type>, in order to contain OUTER, must also include an <outer join type> before it. The last, because NATURAL can only occur in <qualified join>'s, not <cross join>'s. These don't appear to behave according to any spec, so it's a good idea to avoid them.

                正如在邮件中的回答list,SQLite3只支持三种join:CROSS JOININNER JOINLEFT OUTER JOIN.以下是等效的:

                As was answered on the mailing list, SQLite3 only supports three joins: CROSS JOIN, INNER JOIN, and LEFT OUTER JOIN. The following are equivalent:

                , == CROSS JOIN
                JOIN == INNER JOIN
                LEFT JOIN == LEFT OUTER JOIN
                

                如维基百科文章所述,NATURAL 关键字是查找的简写并匹配同名列,不影响连接类型.

                As explained in the wikipedia article the NATURAL keyword is shorthand for finding and matching on same-name columns, and doesn't affect the the join type.

                根据 SQLite 页面,'RIGHT' 和 '完整OUTER JOIN 不受支持.

                According to the SQLite page, 'RIGHT' and 'FULLOUTER JOIN's are not supported.

                这篇关于SQLite 支持哪些连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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 中出现错误)
                Defining a one-to-one relationship in SQL Server(在 SQL Server 中定义一对一关系)
                SQLite loop statements?(SQLite 循环语句?)
                Can I use parameters for the table name in sqlite3?(我可以在 sqlite3 中使用表名的参数吗?)
                SQL - Inserting a row and returning primary key(SQL - 插入一行并返回主键)
              • <tfoot id='wOJwS'></tfoot>

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

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

                      <small id='wOJwS'></small><noframes id='wOJwS'>

                        <tbody id='wOJwS'></tbody>
                        1. <legend id='wOJwS'><style id='wOJwS'><dir id='wOJwS'><q id='wOJwS'></q></dir></style></legend>