1
我有一個表,並需要將其排序的兩列,第一個是VARCHAR列和sencond是一個日期列...排序基於特定的順序sqlite的
問題是...第一列我不想排序基於字母順序
表是意象結構
id name status date
---------------------------------------
1 aaaa completed '2014-05-02'
2 aaaa Running '2015-05-03'
3 aaaa new '2015-05-03'
4 aaaa Pause '2015-05-04'
5 aaaa completed '2015-05-08'
我想狀態進行排序這樣
id name status date
---------------------------------------
1 aaaa Running '2014-05-03'
2 aaaa Pause '2014-05-04'
3 aaaa new '2014-05-03'
4 aaaa completed '2014-05-02'
5 aaaa completed '2014-05-08'
但排序這樣
我想狀態進行排序這樣
id name status date
---------------------------------------
1 aaaa Running '2014-05-03'
2 aaaa Pause '2014-05-04'
3 aaaa new '2014-05-03'
4 aaaa completed '2014-05-02'
5 aaaa completed '2014-05-05'
任何建議表示讚賞...
謝謝