雖然做從函數獲取數據中插入
create table #tmpsr(
srid int,
W_DiffOriginal decimal(12,2)
)
insert into #tmpsr
(srid,W_DiffOriginal)
select sr_id, --- From Table
W_DiffOriginal=DiffOriginal --- From Function
From TBL_SR,dbo.fnc_VoucherDetails_Get(sr_id) ---Table-Valued Function
Where SRdoid = 12811 --- Column in the table TBL_SR
and fsrid=sr_id ---fsrid: Columns in the Table-Valued Function,
我得到的消息:
消息207,級別16,狀態1,9號線 無效的列名稱sr_id「。
任何想法?
能否請您正確地重新格式化的問題? – Baaju 2010-07-06 07:45:47