android.database.sqlite.SQLiteException: near “where”: syntax error (code 1):
我在下面的代码中遇到
1 | String selectQuery ="SELECT * FROM" + TABLE_VIDEO +" order by" + KEY_TIMESTAMP +" ASC"+"where" + KEY_TYPE +"=’trending’"; |
所以,它必须在 WHERE 条件之后。
查看这里了解更多详情。
可能是:
1 | /*code*/+" ASC"+"where"+ /*morecode*/ |
尝试:
1 | /*code*/+" ASC WHERE"+ /*morecode*/ |
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/269052.html