Subject | Re: [IB-Architect] Updatable views |
---|---|
Author | Jim Starkey |
Post date | 2001-12-04T15:05:05Z |
At 12:58 PM 12/4/01 +0100, Ivan Prenosil wrote:
does an insert into view "v", then yes, of course. If not,
then no, of course not.
Jim Starkey
>> That is correct. Any pre-insert trigger was presumed to overrideThat rather depends on what the trigger "trw" does. If it
>> any automatic view insert semantics.
>
>o.k., here is one more exaple:
>
>CREATE TABLE tab (...);
>
>CREATE VIEW v AS
> SELECT * FROM tab;
>
>CREATE TRIGGER trv FOR v BEFORE INSERT ...;
>
> CREATE VIEW w AS
> SELECT * FROM v;
>
> CREATE TRIGGER trw FOR w BEFORE INSERT ...;
>
>Should this command
> INSERT INTO w (...) ...;
>fire both triggers trv and trw, or only trw ?
>
does an insert into view "v", then yes, of course. If not,
then no, of course not.
Jim Starkey