android - Sqlite syntax error near "?" -
simple enough; code looks this:
int idhash = getidhash(); string[] args = {"runways", ""+idhash}; cursor = sqlite.rawquery("select * ? idhash = ?", args);
and see line in logcat:
e/sqlitelog( 9570): (1) near "?": syntax error
where did go wrong?
you can use ?
binding literals. cannot use binding identifiers such table names. identifiers must in sql itself.
Comments
Post a Comment