Query Block Naming
Assign names to query blocks with QB_NAME() so optimizer hints can target specific subqueries or statement blocks.
Explicit Query Block Names
Examples
SELECT /*+ QB_NAME(foo) */ * FROM t1 ...;SELECT * FROM (SELECT /*+ QB_NAME(subq) */* FROM t1 ...) dt ...;SELECT /*+ QB_NAME(qb_outer) */ ...
FROM (SELECT /*+ QB_NAME(dt1) */ ...
FROM (SELECT /*+ QB_NAME(dt2) */ ... FROM ...) dt2) dt1 ...Limitations
Explicit Query Block Names With Path
Syntax
Examples
Limitations
Implicit Names Based on Position
Limitations
Implicit Names Based on Aliases
Examples
Limitations
Last updated
Was this helpful?

