【发布时间】:2010-11-17 14:38:43
【问题描述】:
我正在尝试在我的 Android 数据库上使用此查询,但它不返回任何数据。我错过了什么吗?
SQLiteDatabase db = mDbHelper.getReadableDatabase();
String select = "Select _id, title, title_raw from search Where(title_raw like " + "'%Smith%'" +
")";
Cursor cursor = db.query(TABLE_NAME, FROM,
select, null, null, null, null);
startManagingCursor(cursor);
return cursor;
【问题讨论】:
-
试试这个以获得正确的查询。 stackoverflow.com/a/17925238/6125132
标签: android sqlite android-sqlite