android.database.sqlite.SQLiteException: no such column

前端 未结 4 501
自闭症患者
自闭症患者 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:32

    You can also use like this.

    db.rawQuery("SELECT _id FROM  Meeting   where meet=?" ,
                new String [] {rid});
    

    This will also solve for SQL injection problem.

提交回复
热议问题