【发布时间】:2015-03-21 20:29:42
【问题描述】:
当向 table_a 插入一行时,我必须更新 table_b 中的一列。
查询
CREATE TRIGGER trg_Update
ON table_a FOR INSERT
AS
UPDATE table_b
SET Sold_Qty=inserted.qty
WHERE OrdNo=inserted.OrdNo;
我收到以下错误。
Msg 4104, Level 16, State 1, Procedure trg_Update, Line 6
The multi-part identifier "inserted.OrdNo" could not be bound.
【问题讨论】:
标签: sql-server triggers