天天看点

oracle 优化or 替换为in、exists、union all的几种写法,测试没有问题!

oracle 优化or 替换为in、exists、union的几种写法,测试没有问题!

根据实际情况用选择相应的语句吧!如果有索引,or全表扫描,in 和not in 也要慎用,否则会导致全表扫描,