Change (UPDATE) of a row to a table. I have added to my table two
columns, named 'doe' and 'doc' respectively. For sake of
discussion, let's call the Table 'instr'. What would be the best
method of added the current timestamp (date and time) to each of
these two new columns. In my mind, the timestamp would need to be
added just before the row was INSERTed or UPDATEd to prevent any
"race" condition.
I have looked at Triggers and Functions in the pgAdmin helps, but it
is confusing at best, how to arrive at a solution. Any help would be
appreciated. Perhaps, a simple example to get me headed in the right
direction.
Regards,
Dale Seaburg
--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice
No comments:
Post a Comment