Triggers

From: "Leif B(dot) Kristensen" <leif(at)solumslekt(dot)org>
To: pgsql-sql(at)postgresql(dot)org
Subject: Triggers
Date: 2005-11-22 14:43:47
Message-ID: 200511221543.47979.leif@solumslekt.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I'm trying to understand triggers. I have read the documentation in the
manual as well as the few pages in the Douglas book about the subject,
but I don't see how to implement a trigger that simply updates a
'last_edit' date field in my 'persons' table whenever I do an insert or
update into my 'participants' table; that is a trigger that basically
does an "UPDATE persons SET 'last_edit' = NOW() WHERE persons.person_id
= participants.person_fk". Is that even possible?
--
Leif Biberg Kristensen | Registered Linux User #338009
http://solumslekt.org/ | Cruising with Gentoo/KDE

Responses

  • Re: Triggers at 2005-11-22 16:25:50 from Achilleus Mantzios

Browse pgsql-sql by date

  From Date Subject
Next Message Joost Kraaijeveld 2005-11-22 15:24:13 Foreign key to 2 tables problem
Previous Message Andy Ballingall 2005-11-22 13:22:35 Re: idea for a geographically distributed database: how best to implement?