sp_help_qplan <id>[, <mode>]
<id>
是抽象计划的 ID。
<mode>
是要输出的报告的类型,可以是下列各项之一:
如果没有提供 mode 参数的值,则缺省模式为 brief。
输出简短抽象计划报告:
sp_help_qplan 800005881
gid hashkey id
----------- ----------- -----------
5 2054169974 937054374
query
--------------------------------------------------------------------------
select type, avg(price) from titles group by type
query_plan
--------------------------------------------------------------------------
( plan
( store Worktab1
( i_scan type_price titles )
)
( t_scan ( ...
输出完整抽象计划报告:
sp_help_qplan 784005824, full