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

Popular posts from this blog

json - Zend error Connection -

javascript - Trigger mouseenter when an animated element touches mouse -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -