请教showplan的含义

[复制链接]
查看11 | 回复1 | 2008-12-5 15:27:00 | 显示全部楼层 |阅读模式
以下是一个sql的showplan,怎么看它是nested loop join还是merge join,哪个的outer table,哪个是inner table,谢谢
QUERY PLAN FOR STATEMENT 1 (at line 1).
Auxiliary scan descriptors required: 6

STEP 1
The type of query is INSERT.
The update mode is direct.
Worktable1 created for REFORMATTING.
FROM TABLE

opr_nodename

n1
Nested iteration.
Table Scan.
Forward scan.(rowtotal 535)
Positioning at start of table.
Using I/O Size 16 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
TO TABLE

Worktable1.
STEP 2
The type of query is INSERT.
The update mode is direct.
Worktable2 created for REFORMATTING.
FROM TABLE

pr_help(totalrow 12289)
Nested iteration.
Using Clustered Index.
Index : x1_help
Forward scan.
Positioning by key.
Keys are:

hlp_dom_idASC

hlp_lng_idASC
Using I/O Size 16 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
TO TABLE

Worktable2.
STEP 3
The type of query is SELECT.
FROM TABLE

pr_pargroup
Nested iteration.
Table Scan.
Forward scan. (rowtotal 5)
Positioning at start of table.
Using I/O Size 2 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
FROM TABLE

rdm_security_dim

rsd
Nested iteration.
Table Scan.
Forward scan. (rowtotal 3750)
Positioning at start of table.
Using I/O Size 16 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
FROM TABLE

opr_modeldtl(total 42697)

l
Nested iteration.
Index : x2_modeldtl
Forward scan.
Positioning by key.
Keys are:

secidASC
Using I/O Size 16 Kbytes for index leaf pages.
With LRU Buffer Replacement Strategy for index leaf pages.
Using I/O Size 16 Kbytes for data pages.
With LRU Buffer Replacement Strategy for data pages.
回复

使用道具 举报

千问 | 2008-12-5 15:27:00 | 显示全部楼层
step3 后面还有很多From table,是不是最下面的table是最inner的table,第一个是最外面的table?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行