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

  1. Path: sparky!uunet!gossip.pyramid.com!pyramid!infmx!davek
  2. From: davek@informix.com (David Kosenko)
  3. Newsgroups: comp.databases.informix
  4. Subject: Re: Triggers in Informix?
  5. Message-ID: <1992Nov12.163311.23028@informix.com>
  6. Date: 12 Nov 92 16:33:11 GMT
  7. References: <1992Nov10.063200.2163@netcom.com> <1992Nov10.162417.734@informix.com> <DAVIDM.92Nov11164109@consilium.com>
  8. Sender: news@informix.com (Usenet News)
  9. Distribution: comp
  10. Organization: Informix Software, Inc.
  11. Lines: 23
  12.  
  13. David S. Masterson writes:
  14. >
  15. >Will you be able to define more than one trigger (of different types) against
  16. >a table?  That is, could each table have one each of BEFORE UPDATE, AFTER
  17. >UPDATE, BEFORE INSERT, AFTER INSERT, etc. triggers?
  18.  
  19. You can specify only one trigger each (per table) of INSERT and DELETE, 
  20. but each trigger can have both BEFORE and AFTER clauses to it (that is, 
  21. a BEFORE INSERT and AFTER INSERT are not considered two triggers, but 
  22. rather are created as a single trigger with two clauses).  You can have 
  23. multiple UPDATE triggers, since they can refer to specific columns in the 
  24. table (INSERT and DELETE always apply to an entire row). However, the
  25. column names for multiple UPDATE triggers on the same table must be
  26. mutually exclusive (that is, you cannot define two UPDATE triggers on
  27. the same column in a table).
  28.  
  29. Dave
  30.  
  31. -- 
  32. Disclaimer: These opinions are not those of Informix Software, Inc.
  33. **************************************************************************
  34. "I look back with some satisfaction on what an idiot I was when I was 25,
  35.  but when I do that, I'm assuming I'm no longer an idiot." - Andy Rooney
  36.