SQL排序顺序降序

时间:2013-06-15 18:04:46

标签: android sqlite sorting cursor

我想按列KEY_High对数据进行排序,如何按降序对其进行排序?

String[] columns = new String[] {KEY_High, KEY_name};
Cursor c = ourDatabase.query(DATABASE_TABLE, 
                             columns, null, null, null, null, KEY_High);

1 个答案:

答案 0 :(得分:1)

KEY_High + " DESC"应该这样做