PREF_NAME, PREF_STATUS – text
It gives me this error:
07-02 14:08:07.457: E/AndroidRuntime(17295): android.database.sqlite.SQLiteException: near "?": syntax error: , while compiling: SELECT ? FROM ? WHERE ? = ?
The code I’m using is:
Cursor c = db.rawQuery("SELECT ? FROM ? WHERE ? = ?", new String[]{ PREF_STATUS,
PREF_TABLE, PREF_NAME, assigned_pref_name });
According with the documentation, you only can put “?” on where clause: