No such column sqlite exception

后端 未结 3 502
长发绾君心
长发绾君心 2021-01-29 11:03

I am trying to get some data from user profile, but it doesn\'t find the column. I already check space between every query and it seems nothing wrong. Till now i can\'t see the

3条回答
  •  忘掉有多难
    2021-01-29 11:39

    Use this

    String selectQuery = "SELECT * FROM " + TABLE_PROFILE + " WHERE " + KEY_USER_EMAIL + " = " + "'" + username + "'";
    

    Value of username needs to be passed as a string.

提交回复
热议问题