Increment an INT value?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

To increment an INT value in my table, do I have to first do a SELECT
to know what the value is and the do an INSERT to increment the
Isnt there any way to do this in just one question?

Re: Increment an INT value? wrote:
Quoted text here. Click to load it

update yourtablename set x = x + 1;

Re: Increment an INT value?

How stupid of me... thanks..

Site Timeline