环境 : SQL SERVER 2012
create proc sp_subas select 1 id ,'' memo into #table select memo from #tablegocreate proc sp_mainas select 1 seq ,'' name into #table exec sp_sub go exec sp_main
处理方式
sp_sub的#table,不要和sp_main的命名相同
改一下,就好了.
环境 : SQL SERVER 2012
create proc sp_subas select 1 id ,'' memo into #table select memo from #tablegocreate proc sp_mainas select 1 seq ,'' name into #table exec sp_sub go exec sp_main
sp_sub的#table,不要和sp_main的命名相同
改一下,就好了.