Oracle函数之use_hash

目录

一、函数介绍

二、比较


一、函数介绍

select /*+ use_hash(ici,ifc) */
 ici.user_code, ifc.file_name
  from issue_ipo_cust_info ici
  left join issue_ipo_file_content ifc
    on ifc.id = ici.file_id;

use_hash可以加强表之间的关联,在查询是增加查询效率。具体原理还没搞明白。 

二、比较

如图所示运行时间比较:

猜你喜欢

转载自blog.csdn.net/weixin_42228950/article/details/103502700