mysql-est timestamp - Mailing list pgsql-general

From Thomas T. Thai
Subject mysql-est timestamp
Date
Msg-id Pine.NEB.4.21.0102070940500.11568-100000@ns01.minnesota.com
Whole thread Raw
List pgsql-general
i've browsed the archive and see that there is a way in using triggers to
achieve automatic modification time stamp. i'm porting a mysql
application, and need that same functiona. pgsql's timestamp is for
date+time[+zone]. however, for mysql it's used to stamp the time when the
record was inserted or updated.

regarding the trigger, can someone explain how this works? i looked at the
code provided in the archive and was quite lost. my other concern is i
still have to write the query in such a way so that it'll work in the
other DB's as well. considering the dramatic differences in implementation
of timestamp and what they mean, is there a cleaner way to do it besides
"if (thisDB) / elseif (thatDB) .." block in the client language?



pgsql-general by date:

Previous
From: Gunnar R|nning
Date:
Subject: Re: full text searching
Next
From: Tom Lane
Date:
Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?