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

前端 未结 6 611
执笔经年
执笔经年 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:01

    the simplest way is to use SELECT col1,col2 FROM table_name WHERE col =' something' ; just like Leandros said , my problem was the single quotes , thnx

提交回复
热议问题