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