android.database.sqlite.SQLiteException: no such column

前端 未结 4 495
自闭症患者
自闭症患者 2020-12-01 17:20

when i execute this query i get \'android.database.sqlite.SQLiteException: no such column\' what is the error?

    public Cursor Getupdate(String rid)          


        
4条回答
  •  不思量自难忘°
    2020-12-01 17:46

    Or, better yet, use a PreparedStatement and bind your variables. It'll escape strings and dates properly for you. It'll also help with SQL injection problems.

提交回复
热议问题