sqlite query failing - no such column

后端 未结 5 1899
梦谈多话
梦谈多话 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:56

    Your query String is wrong

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

    the name you give in where should be in single quotes

提交回复
热议问题