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 语句对不区分大小写的结果进行排序?

      How to use SQL Order By statement to sort results case insensitive?(如何使用 SQL Order By 语句对不区分大小写的结果进行排序?)
        <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 语句对不区分大小写的结果进行排序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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='fDjVv'></tfoot>

                  • <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>
                        <tbody id='fDjVv'></tbody>
                        <bdo id='fDjVv'></bdo><ul id='fDjVv'></ul>

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