On 2004-06-18 17:19:40 UTC, Duane Lee - EGOVX wrote:
I would suspect you would need to write a trigger to do this.
It seems the mysql way of doing this is easier and safer.
And non-standard AFAIK.
Why is that not implemented in postgresql? Is it better done with a trigger or with any other way?
Out of curiosity, why don't you know whether you're inserting or updating? It always worries me when I don't know what my application is doing.
-- Richard Huxton Archonet Ltd
---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html