Re: autoupdating mtime column

From: Richard Huxton <dev(at)archonet(dot)com>
To: David Garamond <davidgaramond(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: autoupdating mtime column
Date: 2006-08-04 12:49:06
Message-ID: 44D34242.6000901@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message David Garamond 2006-08-04 15:11:14 Re: autoupdating mtime column
Previous Message David Garamond 2006-08-04 12:16:15 autoupdating mtime column