Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: SQL Rule



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



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group