oracle hints ? use_hash ? ordered ?

上一篇 / 下一篇  2007-04-28 00:00:00 / 个人分类:oracle

关键字: oracle hints use_hash ordered

今天优化一个sql语句,想使用hash join看看效果,无论如何使用提示,都无法改变执行计划。google,首先发现要可以使用LEADING,但是在8i下无效:
发现LEADING的意思是:
LEADING hint causes Oracle to use the specified table as the first table in the join order.An ORDERED hint will override this hint.

改用ordered后,在检查执行计划发现可以使用hash join。

ordered:Causes the SQL to be driven by the tables in the order left to right.

我将use_hash括号里面的表对调,并不能改变执行计划。

我很少使用hints,为什么会出现这个问题,自己不知道?



TAG:

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

日历

« 2008-10-13  
   1234
567891011
12131415161718
19202122232425
262728293031 

数据统计

  • 访问量: 7818
  • 日志数: 645
  • 建立时间: 2008-01-03
  • 更新时间: 2008-09-23

RSS订阅

Open Toolbar