小编Wha*_*107的帖子

当有多个需要满足的条件时,如何查询sqlite

我正在使用内容提供程序,需要查询一个表,其中row = thing1的一列和同一行的另一列= thing2.我知道你可以查询一个表只有一个条件,如:

Cursor c = contentResolver.query(content_uri, projection, variable + "='" + thing1 + "'", null, null);
Run Code Online (Sandbox Code Playgroud)

现在我如何查询两个条件?任何帮助,将不胜感激.

sqlite android where-clause

0
推荐指数
1
解决办法
815
查看次数

标签 统计

android ×1

sqlite ×1

where-clause ×1