Increment an INT
Posted: Sat Jul 10, 2004 7:30 pm
HI, is there any way I can just increment an INT in MySQL without selecting, then incrementing, then updating? Thanks for any help.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
UPDATE tablename SET `int_field` = `int_field` + 1 WHERE `some_cond` = 2