Re: autoupdating mtime column - Mailing list pgsql-sql

From Richard Huxton
Subject Re: autoupdating mtime column
Date
Msg-id 44D34242.6000901@archonet.com
Whole thread Raw
In response to autoupdating mtime column  ("David Garamond" <davidgaramond@gmail.com>)
Responses Re: autoupdating mtime column  ("David Garamond" <davidgaramond@gmail.com>)
List pgsql-sql
David Garamond wrote:
> Dear all,
> 
> Please see SQL below. I'm already satisfied with everything except I 
> wish in
> #4, mtime got automatically updated to NOW() if not explicitly SET in 
> UPDATE
> statement. Is there a way to make the mtime column behave more like I
> wanted? Thanks in advance.

Just check for OLD.mtime = NEW.mtime, or am I missing something here?

--   Richard Huxton  Archonet Ltd


pgsql-sql by date:

Previous
From: "David Garamond"
Date:
Subject: autoupdating mtime column
Next
From: "David Garamond"
Date:
Subject: Re: autoupdating mtime column