-
I am using this query…
Cursor cursor = sqliteDb.query(DB_Table, null, “col like ” + “\””
+ fetchingstring + “%” + “\””, null, null, null,
“COLLATE BINARY”); -
And when I perform search for this, it gives me the error:
01-19 11:13:29.134: E/AndroidRuntime(1707): android.database.sqlite.SQLiteException: near “COLLATE”: syntax error: , while compiling: SELECT * FROM tablename ORDER BY COLLATE BINARY;
-
In my Sqlite database, I already did the column with COLLATE BINARY. So please help me where I am going wrong with this. Thanks V.K.
I am using this query… Cursor cursor = sqliteDb.query(DB_Table, null, col like + \
Share
Simply use glob instead of like to make search case sensitive..
Using same this query,we can make search case sensitive in sqlite.