Oracle_scripte/Tanel/ast/02_join_nested_loops.sql
2014-09-17 13:23:48 +02:00

71 lines
1.2 KiB
SQL

set echo on
select
t.owner, t.created, i.last_ddl_time
from
test_objects t
, indexed_objects i
where
t.object_id = i.object_id
and t.owner = 'AST'
and t.object_name like 'T%'
/
@xall
select /*+ LEADING(t,i) USE_NL(i) */
t.owner, t.created, i.last_ddl_time
from
test_objects t
, indexed_objects i
where
t.object_id = i.object_id
and t.owner = 'AST'
and t.object_name like 'T%'
/
@xall
select /*+ LEADING(t,i) USE_NL(i) NO_NLJ_PREFETCH(i) */
t.owner, t.created, i.last_ddl_time
from
test_objects t
, indexed_objects i
where
t.object_id = i.object_id
and t.owner = 'AST'
and t.object_name like 'T%'
/
@xall
select /*+ LEADING(t,i) USE_NL(i) NO_NLJ_BATCHING(i) */
t.owner, t.created, i.last_ddl_time
from
test_objects t
, indexed_objects i
where
t.object_id = i.object_id
and t.owner = 'AST'
and t.object_name like 'T%'
/
@xall
select /*+ LEADING(t,i) USE_NL(i) NO_NLJ_PREFETCH(t) NO_NLJ_PREFETCH(i) NO_NLJ_BATCHING(t) NO_NLJ_BATCHING(i) */
t.owner, t.created, i.last_ddl_time
from
test_objects t
, indexed_objects i
where
t.object_id = i.object_id
and t.owner = 'AST'
and t.object_name like 'T%'
/
@xall
set echo off