in与exists和not in 与 not exists的区别
摘要:
1、in 与 exists: 外表大,用IN;内表大,用EXISTS; 原理: 用in:外表使用了索引,直接作hash连接; 用exists:内表使用了索引,外表作loop循环再进行匹配; 2、not in与not exists: 性能:not in不走索引,所以一般都用not exists; 区别 阅读全文
posted @ 2019-04-28 15:03
gendway
阅读(2699)
评论(0)
推荐(0)
浙公网安备 33010602011771号