sql server 2005 in 和 not exists的一个微妙区别
sql server的下面2个条件1。
and not exists (select from where =b.id and = c.id)
2。
and c.id not in (select from where =b.id)
这2个条件功能好像一样,但不是的,如果
select from where =b.id 条件返回的是null结果集的话
1号返回true, 而2号返回的是false.
页:
[1]