Sublink Name Hints

Function

These hints specify the name of a sublink block.

Syntax

1
blockname ([@block_name] table)

Precautions

Parameter Description

Example

1
explain select /*+nestloop(store_sales tt) */ * from store_sales where ss_item_sk in (select /*+blockname(tt)*/ i_item_sk from item group by 1);

tt indicates the sublink block name. After being pulled up, the sublink is joined with the outer-query table store_sales by using nestloop. The optimized plan is as follows: