simple auto-updating timestamp ?

From: Andreas <maps(dot)on(at)gmx(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: simple auto-updating timestamp ?
Date: 2003-12-28 22:47:51
Message-ID: 3FEF5D97.8030706@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello list,

I suspect, this is a common issue for newbies.
Is there a simple way to have an auto-updating timestamp like mysql has ?

create table something (
id int4,
sometext text,
update_ts timestamp(0),
primary key (id)
);

Everytime this table gets updated the timestamp should be automatically
refreshed to NOW() ?
I hope someone could point me to an example.

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Keith C. Perry 2003-12-28 22:55:09 Re: Is my MySQL Gaining ?
Previous Message Tony 2003-12-28 22:39:47 Re: Is my MySQL Gaining ?