select 的 IN 与NOT IN 的问题如:1、select count(*) from table where name not in ('li','b','c','d')
2、select count(*) from table where name in ('li','b','c','d')这两句的结果的和不是应该=select count(*) from table 吗?还是有什么没有考虑到的?
2、select count(*) from table where name in ('li','b','c','d')这两句的结果的和不是应该=select count(*) from table 吗?还是有什么没有考虑到的?
in 的是0
not in 1290
而总数为9000多
是什么问题呢?
是在in里,还是not in 里?
然后 select name from table where name in ('li','b','c','d')
在然后是select name from table。这样我想就知道是什么原因了。