View Single Post
  #3 (permalink)  
Old 03-20-10, 00:41
tonkuma tonkuma is online now
Registered User
 
Join Date: Feb 2008
Location: Japan
Posts: 2,190
Why you need to use multiple "WHEN ... THEN (INSERT ... , (DELETE ... ) )"?
(Syntax of "WHEN ... THEN (INSERT ... , (DELETE ... ) )" was wrong.)

It seems both of INSERT/DELETE in two WHEN clause are same, by briefly looking your code.

How about the following code?
Code:
WHEN (NEW_INSERT.GROUP = 'DAD'
      OR
      NEW_INSERT.GROUP = 'ADD' AND NEW_INSERT.S_SHORT=0)
BEGIN
   INSERT ...;
   DELETE ...;
END
Reply With Quote