home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / informix / 2392 < prev    next >
Encoding:
Internet Message Format  |  1992-11-11  |  1.9 KB

  1. Path: sparky!uunet!cimshop!davidm
  2. From: davidm@consilium.com (David S. Masterson)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Triggers in Informix?
  5. Message-ID: <DAVIDM.92Nov11164109@consilium.com>
  6. Date: 12 Nov 92 00:41:09 GMT
  7. References: <1992Nov4.235656.6016@datamark.co.nz> <1992Nov5.171359.7885@informix.com>
  8.     <1992Nov10.063200.2163@netcom.com> <1992Nov10.162417.734@informix.com>
  9. Sender: root@cimshop.UUCP
  10. Distribution: comp
  11. Organization: Consilium Inc., Mountain View, California
  12. Lines: 25
  13. In-reply-to: davek@informix.com's message of 10 Nov 92 16:24:17 GMT
  14. X-Posting-Software: GNUS 3.13  [ NNTP-based News Reader for GNU Emacs ]
  15.  
  16. >>>>> On 10 Nov 92 16:24:17 GMT, davek@informix.com (David Kosenko) said:
  17.  
  18. > Offhand I do not know wtaht what SQL3 standard for triggers is, but 5.01
  19. > will support BEFORE and AFTER triggers on UPDATE, DELETE, and INSERT
  20. > operations, with FOR EACH ROW clauses and WHEN clauses.  So for UPDATE,
  21. > DELETE, and INSERT operations, a trigger can take effect before the action
  22. > or after it, you can apply the trigger action to each row and can place
  23. > tests upon columns in the row to determine if the triggered action  should
  24. > be executed.  The triggered action can be an insert, delete, update, or
  25. > execute procedure statement.  For update triggers, the update of individual
  26. > columns can invoke the trigger, or the update of any column.
  27.  
  28. Will you be able to define more than one trigger (of different types) against
  29. a table?  That is, could each table have one each of BEFORE UPDATE, AFTER
  30. UPDATE, BEFORE INSERT, AFTER INSERT, etc. triggers?
  31.  
  32. --
  33. ====================================================================
  34. David Masterson                    Consilium, Inc.
  35. (415) 691-6311                    640 Clyde Ct.
  36. davidm@consilium.com                Mtn. View, CA  94043
  37. ====================================================================
  38. We should develop anti-satellite weapons because we could not have
  39. prevailed without them in 'Red Storm Rising'.
  40.        -- Vice President Dan Quayle
  41.