在我添加“order by”之前,我的语句运行良好并且可以显示数据。添加“order by”后,它无法工作!我的陈述有问题吗?
Cursor c = sampleDB.rawQuery("SELECT companyNameEng FROM " +
TABLE_NAME + "ORDER BY companyNameEng asc", null);
if (c != null ) {
while (c.moveToNext()) {
womenName.add(c.getString(0)); // Get the current subj
// code, add to list
}
sampleDB.close();
}
sampleDB.close();