相关疑难解决方法(0)

如何在SQLite WHERE子句中包含布尔值

我没有结果.如何where在SQLite 中的子句中包含布尔条件?

我试过这些

"Select * from table where col = 1"
"Select * from table where col = '1'"
"Select * from table where col = true"
"Select * from table where col = 'true'"
"Select * from table where col = 'True'"
"Select * from table where col is True"
Run Code Online (Sandbox Code Playgroud)

没有.我甚至尝试在查询函数中包含"true"作为whereArgs.

我该如何解决?

sqlite android

11
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

sqlite ×1