| From: | hubert depesz lubaczewski <depesz(at)depesz(dot)com> |
|---|---|
| To: | blackwater dev <blackwaterdev(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: date stamp on update? |
| Date: | 2008-11-23 11:20:41 |
| Message-ID: | 20081123112041.GA8569@depesz.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
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(at)depesz(dot)com / aim:depeszhdl / skype:depesz_hdl / gg:6749007
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andrus | 2008-11-23 11:34:17 | Re: delete commands fails silently to delete primary key |
| Previous Message | Gerhard Heift | 2008-11-23 09:11:56 | Re: [Q]updating multiple rows with Different values |