摘要: 一、in 与 exists 的区别 1、exists、not exists 一般都是与子查询一起使用,In 可以与子查询一起使用,也可以直接in (a,b.....) 2、exists 会针对子查询的表使用索引,not exists 会对主子查询都会使用索引。in 与子查询一起使用的时候,只能针对主 阅读全文
posted @ 2021-09-04 18:08 古兰精 阅读(1434) 评论(0) 推荐(1) 编辑