oracle - SQL优化
摘要:
优化规则:1.CBO模式下,表从右到左查询,右边第一个为基础表选择行数的少作为基础表,三个及三个以上的表,需要选择交叉表(连接另外两个表的表)作为基础表,2.数据量大的时候,使用exists 而非 in3.where自下而上的解析where子句,过滤数据记录的条件写在where字句的尾部,以便在过滤... 阅读全文
posted @ 2012-06-26 15:54 lovebeauty 阅读(357) 评论(0) 推荐(0) 编辑