首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

多表查询后批改报错

2012-08-07 
多表查询后修改报错SQL codeUpdate aset a.FPlanTrategy324from t_ICitem a , dbo.abc$ bwherea.Fnumbe

多表查询后修改报错

SQL code
Update aset a.FPlanTrategy='324'from t_ICitem a , dbo.abc$ bwhere   a.Fnumber=b.物料代码









消息 4422,级别 16,状态 1,第 1 行
View 't_ICitem' has an INSTEAD OF UPDATE trigger and cannot be a target of an UPDATE FROM statement.

[解决办法]
根据视图找到相关字段 再做多表查询
SQL codeUpdate C
set c.FPlanTrategy='324'
from t_ICitem a , dbo.abc$ b table c

where a.Fnumber=b.物料代码 and c.Fnumber=b.物料代码
 

热点排行