我想在一個INSERT語句插入多條記錄那個時候我在我的觸發得到錯誤如果在一個刀片插入多個記錄如何使用inserttrigger聲明
誤差
Msg 512, Level 16, State 1, Procedure SetIntFlag, Line 7 Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression. The statement has been terminated.
下了扳機是
declare @act char(16)if update (first_nm)
set @act = (select acct_no from inserted)
update Client set Phn9_int = 1 where acct_no = @act
如果多個列正在插入其顯示錯誤,則將其分配給一個變量。