sqlite query failing - no such column

后端 未结 5 1897
梦谈多话
梦谈多话 2021-01-15 04:53

I have a db that is created like this...

public class DataBaseManager extends SQLiteOpenHelper{

    Context mContext;
    private static final String TAG =          


        
5条回答
  •  走了就别回头了
    2021-01-15 04:54

    Change your old query "SELECT "+colID+ " FROM " + allScreens + " WHERE " + colName + "=" +name; to

     "SELECT "+colID+ " FROM " + allScreens + " WHERE " + colName + "='" +name+"'";
    

提交回复
热议问题