mysql中not in,in,exists,not exists原理和区别

区别: in:spa where id in(x1,x2)等同于where id=x1 or id=x2select not in: 查询 where id not in(x1,x2)等同于where id!=x1 and id!=x2 exists: where exists(select ......);select 子查询有结果则“exists(select ......)”返回true,不
相关文章
相关标签/搜索