[转载]in , exists , not in , not exists 尽量使用exists 而不是in
提示:我在做优化sql时,经常碰到使用in的语句,这时我们一定要用exists把它给换掉,因为Oracle在处理In时是按Or的方式做的,即使使用了索引也会很慢。比如:SELECT col1,col2,col3 FROM table1 aWHERE a.col1 n...
注册时间:2008-12-16