sqlite不会不支持and 吧? select * from table where rootid=2 and uid=0 order by orderid asc,id asc 使用上面的语句查询不到数据,可是符合的条件是存在的.我取掉and,就有记录,不知道怎么回事 select * from table where rootid=2 order by orderid asc,id asc 试一下select * from table where uid=0;
这样是可以的,可是后面加上另一个条件,我试过了,and roorid=1可以查到,可是and roorid=2就查不到了,但我看数据库,符合条件的,有啊 出现这种情况?我猜应该是你的数据库有问题了,重新下载一个安装吧! 我刚才删了全部数据,从新加了两条,试了下select * from table where uid=0;这条,不行,查不到,不知道什么原因,uid是数组字段,我要查询等于0的,难道不是这样吗? "数组字段"什么意思? 既然 uid=0 没有结果 那么 rootid=2 and uid=0 就更不会有结果了。 我的意思是,uid=0的数据是存在的,但是查询不到. 建议重装 肯定是哪默认的配置问题出错冲突了