Re: newbie: update timestamp trigger? - Mailing list pgsql-general

From Scott Marlowe
Subject Re: newbie: update timestamp trigger?
Date
Msg-id dcc563d10710231243q1d69e8cau51bcf97d5f478025@mail.gmail.com
Whole thread Raw
In response to newbie: update timestamp trigger?  (ahnf <interz12@yahoo.com>)
List pgsql-general
On 10/23/07, ahnf <interz12@yahoo.com> wrote:
> Whenever a row is updated in a table with a timestamp column. How do I write a trigger to set that timestamp column
tonow() or the current timestamp? 

You should be able to take a virtual chainsaw to the example on this
page and do it:

http://www.postgresql.org/docs/8.2/static/plpgsql-trigger.html

pgsql-general by date:

Previous
From: "Rodrigo De León"
Date:
Subject: Re: newbie: update timestamp trigger?
Next
From: Kevin Hunter
Date:
Subject: data statistic functions