Search Postgresql Archives

Updating rows (automatically) that are selected

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

 



Hello,
  I have a table called X
it contains 3 fields of importance(amongst others).
time (timestamp), snooze (int) , inbox (int)

The time column sometimes has null values.
What I want is that every time a row is selected, if the time is a
null value, it is set to now() and  snooze is set to 0 and inbox to 1

How would I go about doing this. I looked into Creating Rules, but I
am not sure if this will work.

Please Advice. Much thanks in advance.
-assad


[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