同时执行2个存储过程,2个SP中分别有相同的临时表名,会有冲突吗?

同时执行2个存储过程,2个SP中分别有相同的临时表名,会有冲突吗?
答案:不会
这就可以在以后写存储过程的时候统一临时表名了.


alter procedure sp_01 as begin create table #T_01 ( A int ) insert into #T_01 (A) values (1) select * from #T_01 end go alter procedure sp_02 as begin create table #T_01 ( A int ) insert into #T_01 (A) values (2) select * from #T_01 end GO sp_01 GO sp_02

  

原文地址:https://www.cnblogs.com/crsn/p/4752394.html