但是如果用
set @str="DECLARE @indextable table(id int identity(1,1),nid int) INSERT INTO @indextable(nid) SELECT ChoiceID FROM Exam_Choice WHERE "+ @str
exec(@str)//
这样填充的表返回不到上一个存储过程中。
set @str="DECLARE @indextable table(id int identity(1,1),nid int) INSERT INTO @indextable(nid) SELECT ChoiceID FROM Exam_Choice WHERE "+ @str
exec(@str)//
这样填充的表返回不到上一个存储过程中。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货