hints

Description

Introduces and groups items in a partial abstract plan.

Syntax

( hints ( derived_table ) 
     ...
)

Parameters

derived_table

is one or more expressions that generate an abstract plan derived table.

Returns

An abstract plan derived table.

Examples

Example 1

select * 
from t1, t2
where c12 = c21
        and c11 > 0
        and c22 < 1000

( hints
    ( g_join 
        ( t_scan t2 )
        ( i_scan () t1 )
    )
)

Specifies a partial plan, including a table scan on t2, the use of some index on t1, and the join order t1-t2. The index choice for t1 and the type of join (nested-loop or sort-merge) is left to the optimizer.

Usage