What Must I Do To Implement Sqlite's Rawquery() Method?
I'm trying to use the SQLite rawQuery method, based on the code here: Android record exists() in database? ...but I get 'The method rawQuery(String, String[]) is undefined for the
Solution 1:
rawQuery() is a method on SQLiteDatabase, not SQLiteOpenHelper. Call getReadableDatabase() or getWritableDatabase() on your SQLiteOpenHelper to get a SQLiteDatabase.
Post a Comment for "What Must I Do To Implement Sqlite's Rawquery() Method?"