摘要:
--not in 和not exists 如果查询语句使用了not in 那么内外表都进行全表扫描,没有用到索引;而not extsts 的子查询依然能用到表上的索引。所以无论那个表大,用not exists都比not in要快。 --NOT IN select * from OrderAsst A where A.OrgGid NOT IN( select A.OrgGid from... 阅读全文
posted @ 2019-07-08 10:55
蜜雪粮液
阅读(229)
评论(1)
推荐(0)

浙公网安备 33010602011771号