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

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

      • <bdo id='M415O'></bdo><ul id='M415O'></ul>

      如何使用 SQL Order By 语句对不区分大小写的结果进行排序?

      时间:2023-10-10
        <legend id='OeLw6'><style id='OeLw6'><dir id='OeLw6'><q id='OeLw6'></q></dir></style></legend>
      • <i id='OeLw6'><tr id='OeLw6'><dt id='OeLw6'><q id='OeLw6'><span id='OeLw6'><b id='OeLw6'><form id='OeLw6'><ins id='OeLw6'></ins><ul id='OeLw6'></ul><sub id='OeLw6'></sub></form><legend id='OeLw6'></legend><bdo id='OeLw6'><pre id='OeLw6'><center id='OeLw6'></center></pre></bdo></b><th id='OeLw6'></th></span></q></dt></tr></i><div id='OeLw6'><tfoot id='OeLw6'></tfoot><dl id='OeLw6'><fieldset id='OeLw6'></fieldset></dl></div>

            <tbody id='OeLw6'></tbody>

          <tfoot id='OeLw6'></tfoot>

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

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

                本文介绍了如何使用 SQL Order By 语句对不区分大小写的结果进行排序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我有一个 SQLite 数据库,我正在尝试按字母顺序对其进行排序.问题是,SQLite 在排序过程中似乎没有考虑 A=a,因此我得到这样的结果:

                I have a SQLite database that I am trying to sort by Alphabetical order. The problem is, SQLite doesn't seem to consider A=a during sorting, thus I get results like this:

                A乙C吨一种乙C克

                我想得到:

                A一种乙乙CCG

                需要做哪些我不知道的特殊 SQL 事情?

                What special SQL thing needs to be done that I don't know about?

                SELECT * FROM NOTES ORDER BY title
                

                推荐答案

                你也可以ORDER BY TITLE COLLATE NOCASE.

                Edit:如果需要指定ASCDESC,在NOCASE 后添加,如

                If you need to specify ASC or DESC, add this after NOCASE like

                ORDER BY TITLE COLLATE NOCASE ASC
                

                ORDER BY TITLE COLLATE NOCASE DESC
                

                这篇关于如何使用 SQL Order By 语句对不区分大小写的结果进行排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:如何向现有 SQLite 表添加外键? 下一篇:Chrome 中的加密 cookie

                相关文章

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

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

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