SQLite .query() method, WHERE clause is only taking double quotes strings

前端 未结 6 610
执笔经年
执笔经年 2020-12-14 20:43

I have variable:

String owner=\"Mike\";
String[] columns ={\"quantity\", \"price\",\"owner\"}

My cursor is trying to get
Curso

6条回答
  •  被撕碎了的回忆
    2020-12-14 21:11

    SELECT quantity, price, owner, FROM sku_table WHERE owner='Mike' this is the correct SELECT. You forget the ' ' (single quotes)

提交回复
热议问题