adding to the current value

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

 



I would like to increment the current value of a field X without having to retrieve field X beforehand. Can I do this?

Example:

UPDATE my_table set field_1 = (current_field_value -1) WHERE...blah, blah, blah....

==============================================
A. Justin Turner

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux