All I want to do is grab the material in alphabetical order and ignore the capital letters.
db.rawQuery("SELECT " + catName + " FROM "+tableName+" ORDER BY "+catName+" ASC COLLATE NOCASE;", null);
This is the code that I use above, but it always gives me an SQLite exception saying that COLLATE is a syntax error.
android.database.sqlite.SQLiteException: next to "COLLATE": syntax error: when compiling: SELECT Artist FROM testTable COLLATE NOCASE ASC
android sql sqlite sql-order-by collate
Anthony Honciano May 11 '11 at 12:49 a.m. 2011-05-11 00:49
source share