For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > September 2005 > RE: [PHP-DB] adding to the current value









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] adding to the current value
Bastien Koert

2005-09-29, 6:56 pm

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
>

Justin Turner

2005-09-29, 6:56 pm

How can I do this?

Bastien Koert wrote:

> yes
>
>
>
>


--

========================================
======
A. Justin Turner
ResNet Coordinator
University of Rochester
020 Gates Wing Susan B. Anthony Hall
jt@reslife.rochester.edu
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com