Is this possible in MySQL? rather than select the row , ++ the variable then update the row can i use a mysql command to do this in one line?
eg: UPDATE table SET col=+1
?
Thanks in advance
UPDATE table SET col=col+1 WHERE ... don't forget your where condition unless you want to update every element in the table.
excellent, yeah i know i was just illustrating. Thanks alot🙂