Re: mysql newbie question...
| From: | Web Master | Date: | Wed, 13 Dec 2000 18:59:46 +0000 |
| Subject: | Re: mysql newbie question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30143@lists.php.net to get a copy of this message | ||
As far as I know, without fetching the row, you wouldn't able to increase the
value for a column.
jalist wrote:
> I've tried to find out how to do this and drawn a blank...
> All I want to do is increment a field in a mysql table. Do I need to read
> the value in, ++ it and then write it back to the db, or can I do this as
> part of the db query, ie within the UPDATE blah SET... query?
>
> Thanks in advance.
>
> Steve
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net