sql - how to use inserttrigger if inserting Multiple records in one insert statement -


I want to add several records to an inclusion statement that the timing is causing an error in my trigger

Error

Message 512, Level 16, State 1, Process SetIntflag, Line 7Subjectivity has returned more than 1 value. When subquery =,! =, & Lt;, & lt; =, & Gt ;, & gt; = Or when the subquery is used as an expression, it is not allowed! This statement has been abolished.

My Trigger

  Announce @act char (16) if update (first_nm) set @act = (choose acct_no from) Update customer set Phn9_int = 1 where acct_no = @act   

If more than one column is inserting its display error, then assign it to a variable.

  updated client set Phn9_int = 1 where in acct_no (/)> 

Actually, my rule of thumb is, if you see any scalar variables in the trigger, then possibly it is broken in relation to multi-line tasks. The exception is if it is using the cursor, but the cursor usually can be avoided.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -