Re: adding to the current value

From: Date: Thu, 29 Sep 2005 21:04:25 +0000
Subject: Re: adding to the current value
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-40420@lists.php.net to get a copy of this message
How can I do this? Bastien Koert wrote:
yes
From: Justin Turner <trnr@reslife.rochester.edu> To: php-db@lists.php.net Subject: [PHP-DB] adding to the current value Date: Thu, 29 Sep 2005 16:26:00 -0400 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
-- ============================================== A. Justin Turner ResNet Coordinator University of Rochester 020 Gates Wing Susan B. Anthony Hall jt@reslife.rochester.edu

« previous php.db (#40420) next »