0
我的名片夹数据库具有行 表进行排序:如何通过顺序多列的字母顺序
lastname text, firstname text, number text
我查询得到排序结果按字母顺序显示,以“姓氏”第一排序和“名字“第二次排序,然后选择‘数字’,我想列出哪个人最后(下)有NULL字段
目前我使用
select * from table order by lastname IS NULL,firstname IS NULL ,number IS NULL
但不是为好,不仅通过“IS NULL”
select * from table
order by
lastname IS NULL, lastname,
firstname IS NULL, firstname,
number IS NULL, number
由于SQLite的使用0
为FALSE
和1
为TRUE
空条目应该放在最后排序正确
多德你救了我的一天!吨的感谢,浪费了很多时间与错误。 – virtplay