0
看到此問題的不同鏈接,但找不到特定於我的要求的鏈接。將記錄(存儲過程的結果)插入臨時表
我有一個臨時表,我想填充存儲過程返回的結果。 存儲過程返回多列,其中,我必須插入特定列
我嘗試,
create table #temp
(
[Field1] [numeric](14,5) NULL,
[Field2] [numeric](14,5) NULL,
[Field3] [nvarchar](30) NULL
)
insert into #temp
exec sp_name @para1 = par1value,@para2=par2value
所有這些代碼駐留在另一個存儲過程。 它給我的錯誤,
Column name or number of supplied values does not match table definition.
我怎麼可以插入只關心從多個字段的字段結果從存儲過程
嘗試過,仍然給出錯誤 – user3085995
如果錯誤與您在問題中指定的錯誤相同,那麼它會清楚地說明問題所在。 – P5Coder