Re: SQL Rule

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: SQL Rule
Date: 2006-04-26 21:38:46
Message-ID: 200604261438.46879@hal.medialogik.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On April 26, 2006 02:35 pm, "Bert" <clemens(dot)bertschler(at)gmail(dot)com> wrote:
> CREATE TRIGGER trigger_sum
> AFTER INSERT OR UPDATE
> ON test
> FOR EACH ROW
> EXECUTE PROCEDURE trigger_test();
>
> The inserting and updating is doing well, but its not summing up the a
> and b and save it to the c column. So far maybe you can help me second
> time.

That would need to run BEFORE INSERT OR UPDATE, not AFTER.

--
Alan

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bert 2006-04-26 21:49:19 Re: SQL Rule
Previous Message Bert 2006-04-26 21:35:28 Re: SQL Rule