From: Daniel Jaenecke <daniel.jaenecke@smaxs.de>
To: PostgreSQL sql <pgsql-sql@postgresql.org>
Subject: timestamp
Date: Wed, 12 Feb 2003 09:46:15 +0100
Message-ID: <20030212094615.5f02ce2b.daniel.jaenecke@smaxs.de> (raw)
Hi!
I am rather new to PostGreSQL, having mainly used MySQL until now.
MySQL has a column type TIMESTAMP[1] which holds - as expected - a timestamp, but additionally this timestamp is being updated automatically on any UPDATE or INSERT operation.
Since this is a quite handy feature to keep track of latest changes I would like to create such a behavior for my PostGres tables too. But since I have no idea how to do it I would warml welcome any suggestion... :)
Thx
dj
[1]
http://www.mysql.com/doc/en/DATETIME.html
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: daniel.jaenecke@smaxs.de
Subject: Re: timestamp
In-Reply-To: <20030212094615.5f02ce2b.daniel.jaenecke@smaxs.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox