On Update (trigger hint) - Mailing list pgsql-general

From MaRCeLO PeReiRA
Subject On Update (trigger hint)
Date
Msg-id 20040227165022.81353.qmail@web20210.mail.yahoo.com
Whole thread Raw
List pgsql-general
Hi guys,

Please, give me some advices on how to do the
following:

I have the following table:

CREATE TABLE products (
   id            SERIAL,
   description   TEXT,
   lastupdate    date
);

Well, I would like to update the column "lastupdate"
with the value "now()" on every UPDATE executed on a
row of this table.

Do I have to create a function to do it? Can you help
me?

Regards,

Marcelo

______________________________________________________________________

Yahoo! Mail - O melhor e-mail do Brasil! Abra sua conta agora:
http://br.yahoo.com/info/mail.html

pgsql-general by date:

Previous
From: Bill Moran
Date:
Subject: Re: field must appear in the GROUP BY clause or be used
Next
From: Mike Mascari
Date:
Subject: Re: field must appear in the GROUP BY clause or be used