现在手上有一sqlite数据库,里面有一张表A
A 有很多列A1,A2,A3, A4....
不知道什么时候里面有一些表项,对应A1的值为0
但是我用 select * from A where A1=0 却得到一个空表!!!
这是什么情况????
然后用了 select * from A where A1 like "%0%"还是空表!
然后用了 select * from A where A1 is null还是空表!
然后 select * from A where A1<1 还是空表
但是!!
我用 select * from A where A1 >10000000却能索引到这个项!!
另外 如果我用A2为关键字索引到这个表项,取出其A1列的值 确实是0 .
我就纳了闷了!!!有兄弟姐妹们遇到过这种情况么??
------解决方案--------------------------------------------------------
你表中存储的都空字符串!
而字符串显然大于任何数字。select * from A where A1 >10000000 自然能找到这些记录。