标签: android sqlite
您是否有可能像这样构建SQLite查询 SELECT * FROM master WHERE (age=1 OR age=4) AND WHERE city LIKE '%Bo%'
SELECT * FROM master WHERE (age=1 OR age=4) AND WHERE city LIKE '%Bo%'
此查询的正确版本或2列上的查询是不可能的?
答案 0 :(得分:3)
是。但是,您只能使用关键字WHERE一次,只需将这些条件组合在一起:
WHERE
SELECT * FROM master WHERE (age=1 OR age=4) AND city LIKE '%Bo%'