> is there a function in mysql to increment a value inside a field? I am
> always doing this with php, just thought this might be really
usefull?!
UPDATE table SET column = column + 1 WHERE ...
Like that?
---John W. Holmes...
Amazon Wishlist: http://www.amazon.com/o/registry/3BEXC84AB3A5E
PHP
AUTO_INCREMENT
http://www.mysql.com/doc/en/example-AUTO_INCREMENT.html
Edward Dudlik
Becoming Digital
www.becomingdigital.com
- Original Message -
From: "Merlin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, 03 June, 2003 17:56
Subject: [PHP-DB] in
Hi there,
is there a function in mysql to increment a value inside a field? I am
always doing this with php, just thought this might be really usefull?!
Thanx,
Merlin
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php