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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -