From: Marc G. Fournier <scrappy@hub.org>
To: pgsql-sql@postgresql.org
Subject: simple trigger question ...
Date: Wed, 2 Apr 2003 22:41:42 -0400 (AST)
Message-ID: <20030402223933.M71125@hub.org> (raw)
I want to create a trigger on a table that for every insert, in performs a
nextval on a sequence ...
Something like:
CREATE TRIGGER on_company_company_id_seq
AFTER INSERT ON company FOR EACH ROW
EXECUTE PROCEDURE nextval('company_company_id_seq');
I'm embaressingly new at triggers ... is this possible?
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: scrappy@hub.org
Subject: Re: simple trigger question ...
In-Reply-To: <20030402223933.M71125@hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox