adding to the current value
| From: | Justin Turner | Date: | Thu, 29 Sep 2005 20:26:00 +0000 |
| Subject: | adding to the current value | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-40418@lists.php.net to get a copy of this message | ||
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