Chinaunix

标题: /*+XXXXX*/的具体含义? [打印本页]

作者: 流云飞渡    时间: 2004-12-14 09:52
标题: /*+XXXXX*/的具体含义?
9I中新增的这个/*+XXXXX*/的具体含义是什么?
例:SQL>;select /*+CACHE*/ename from scott.emp;
作者: tinywind    时间: 2004-12-14 11:20
标题: /*+XXXXX*/的具体含义?
这是hint,提供了执行sql时更细微的控制,这个语句是让结果保留在cache中

hint不是9i中加入,很早就有,现在oracle已经不推荐使用hint了
作者: 流云飞渡    时间: 2004-12-14 11:48
标题: /*+XXXXX*/的具体含义?
能给个链接或更详细的解释吗?
作者: tinywind    时间: 2004-12-14 12:07
标题: /*+XXXXX*/的具体含义?
去查oracle的文档,我以前在8的文档中看到过
作者: 流云飞渡    时间: 2004-12-14 13:06
标题: /*+XXXXX*/的具体含义?
查过了,没查到,所以才发的帖子
作者: mydeer    时间: 2004-12-17 15:05
标题: /*+XXXXX*/的具体含义?
为什么不推荐hint??
作者: sshd    时间: 2004-12-17 15:22
标题: /*+XXXXX*/的具体含义?
In general oracle optimizer will control how to execute a sql. Sometimes a user may choose to bypass that and tell oracle to execute the sql in the way he suggested. Thus he can use hint /*+ ... */ to achive that.
Note if any thing is wrong in the hint oracle just ingore it and you will not get any error.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2