我想在一个插入语句中插入多条记录,当时我的触发器出现错误
错误是
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
如果不止一列插入其显示错误,因为它分配给一个变量。