Re: on update set default - Mailing list pgsql-general

From rolf.ostvik@axxessit.no
Subject Re: on update set default
Date
Msg-id OF9D668014.8DBD83C7-ONC1256B1E.002C27EA@axxessit.no
Whole thread Raw
In response to on update set default  ("Ben-Nes Michael" <miki@canaan.co.il>)
List pgsql-general

On 2001-12-09 "Ben-Nes Michael" <miki@canaan.co.il> wrote:
>Im want that on each insert, update to a table the column:
>changed_on TIMESTAMP DEFAULT now()
>will be set to now();

In the PostgreSQL 7.1 Programmer's guide

http://www.postgresql.org/idocs/index.php?plpgsql-trigger.html

I guess it's more than you need.

--
AXXESSIT ASA                  http://www.axxessit.no
Rolf Østvik / Test technician




pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Multiple Instances
Next
From: Bruce Momjian
Date:
Subject: Re: alternative place to download pgaccess