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

  2. <small id='22RDC'></small><noframes id='22RDC'>

      <legend id='22RDC'><style id='22RDC'><dir id='22RDC'><q id='22RDC'></q></dir></style></legend>
        <bdo id='22RDC'></bdo><ul id='22RDC'></ul>
    1. SQL 子句“GROUP BY 1"是什么意思?意思是?

      时间:2024-04-16
        <bdo id='4NWUS'></bdo><ul id='4NWUS'></ul>
        <i id='4NWUS'><tr id='4NWUS'><dt id='4NWUS'><q id='4NWUS'><span id='4NWUS'><b id='4NWUS'><form id='4NWUS'><ins id='4NWUS'></ins><ul id='4NWUS'></ul><sub id='4NWUS'></sub></form><legend id='4NWUS'></legend><bdo id='4NWUS'><pre id='4NWUS'><center id='4NWUS'></center></pre></bdo></b><th id='4NWUS'></th></span></q></dt></tr></i><div id='4NWUS'><tfoot id='4NWUS'></tfoot><dl id='4NWUS'><fieldset id='4NWUS'></fieldset></dl></div>

            <tfoot id='4NWUS'></tfoot>
            <legend id='4NWUS'><style id='4NWUS'><dir id='4NWUS'><q id='4NWUS'></q></dir></style></legend>
            • <small id='4NWUS'></small><noframes id='4NWUS'>

                  <tbody id='4NWUS'></tbody>
              • 本文介绍了SQL 子句“GROUP BY 1"是什么意思?意思是?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                有人向我发送了一个 SQL 查询,其中 GROUP BY 子句包含以下语句:GROUP BY 1.

                Someone sent me a SQL query where the GROUP BY clause consisted of the statement: GROUP BY 1.

                这一定是打错字了吧?没有列被赋予别名 1.这意味着什么?我是否正确地认为这一定是一个错字?

                This must be a typo right? No column is given the alias 1. What could this mean? Am I right to assume that this must be a typo?

                推荐答案

                意思是按第一列分组,不管它叫什么.你可以用 ORDER BY 做同样的事情.

                It means to group by the first column regardless of what it's called. You can do the same with ORDER BY.

                这篇关于SQL 子句“GROUP BY 1"是什么意思?意思是?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:MySQL groupwise MAX() 返回意外结果 下一篇:按天分组的 SQL 查询

                相关文章

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

                  <legend id='OZUNN'><style id='OZUNN'><dir id='OZUNN'><q id='OZUNN'></q></dir></style></legend>
                    <bdo id='OZUNN'></bdo><ul id='OZUNN'></ul>
                  1. <small id='OZUNN'></small><noframes id='OZUNN'>

                    <tfoot id='OZUNN'></tfoot>