1

我有一个显示以下内容的 ms sql 跟踪... select @P1 是什么意思或做什么?

Trace 显示了这一点

declare @P1 intCHAR(10)set @P1=29CHAR(10)

exec sp_prepexecrpc @P1 output, N'gsp_DeleteAccessForAreaGroupByCardholder', 0, 1117687CHAR(10)

select @P1

如果它没有做任何事情,为什么它会以选择 @p1 结束事件?sql profiler 中的几个事件以 select @p1 或 select @p1, @P3, @P4 结尾,这些值是做什么用的?

4

1 回答 1

1

它从执行过程中选择结果,然后在执行过程中将结果发送给变量@P1

于 2013-05-28T20:07:04.863 回答