Search Postgresql Archives

Re: date stamp on update?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Nov 22, 2008 at 05:34:26PM -0500, blackwater dev wrote:
> Is there a datatype in postgres that will automatically update the date when
> the row is updated?  I know I can do a timestamp and set the default to
> now() but once the row is inserted, and then edited, I want the column
> updated without editing my application code or adding a trigger.  Is this
> possible with Postgres?

http://www.depesz.com/index.php/2008/05/08/mysqls-timestamp-in-postgresql/

depesz

-- 
Linkedin: http://www.linkedin.com/in/depesz  /  blog: http://www.depesz.com/
jid/gtalk: depesz@xxxxxxxxxx / aim:depeszhdl / skype:depesz_hdl / gg:6749007

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux