回答

收藏

在更新语句中使用表值函数

技术问答 技术问答 118 人阅读 | 0 人回复 | 2023-09-12

我正试图执行以下更新语句:
) Y. d! X% J7 @. t8 Z( ?Update belege2  Set Preis_Einh = x.Preis,Aktion=x.Aktion,PreisHerk = x.PreisHerk FROM dbo.GetPreis(belege2.prodkey,belege2.Anzahl) xwhere belege2.Beleg_Nr = 13599SQL Server显示以下错误:$ Q6 y& T7 E, m& L3 m2 T
Msg 4104,Level 16,State 1,Line 3The multi-part identifier "belege2.prodkey" could not be bound.Msg 4104,Level 16,State 1,Line 3The multi-part identifier "belege2.Anzahl" could not be bound.不支持吗?有解决办法吗?
" [4 b& U0 S+ d, m# h2 W- c. N3 G                                                               
1 T# a4 o3 M! i$ \. U    解决方案:
分享到:
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则