ITPub博客

首页 > 数据库 > Oracle > 关于优化器提示使用逗号的语法

关于优化器提示使用逗号的语法

原创 Oracle 作者:qdrzq 时间:2014-05-26 13:47:14 0 删除 编辑
一直以来,看关于优化方面的材料,对强制使用索引的优化器提示写法/*+INDEX (TABLE, INDEX) */中,是否需要写逗号没有弄明白.因为有的材料上面使用了逗号,有的则不使用逗号.

所以,探究了一下,找到官方文档:
http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements006.htm#autoId24
其中写道:
When tablespec is followed by indexspec in the specification of a hint, a comma separating the table name and index name is permitted but not required. Commas are also permitted, but not required, to separate multiple occurrences of indexspec.
这下明白了,意思是:
表名和索引名之间可以用逗号分隔,但不是必需的.同样,多个索引名之间也是可以用逗号分隔,也不是必需的.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29512902/viewspace-1169964/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-03-01

  • 博文量
    38
  • 访问量
    362738