Android的排序sqlite的查询结果忽略大小写 [英] Android sort sqlite query results ignoring case

查看:415
本文介绍了Android的排序sqlite的查询结果忽略大小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道,那里有排序的查询忽略案件的结果的一种方式。因为在开始用大写字母的那一刻字段进行排序,并把在列表的顶部,并开始用小写字母字段也进行排序,但正在把大写的字段后。

just wondering if theres a way of sorting the results of a query ignoring case. Cause at the moment fields starting with an upper case letter are sorted and put on top of the list and fields starting with lower case letter are also sorted but are put after the upper case fields.

感谢 - 迈克

推荐答案

ORDER BY列COLLATE NOCASE;

请参阅<一href="http://www.sqlite.org/datatype3.html#collation">http://www.sqlite.org/datatype3.html#collation

这篇关于Android的排序sqlite的查询结果忽略大小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆