increase value by 1
#1

Hi, how to increase field value by 1 with mysql query?
Reply
#2

get the value first, store it, add it , update it simple
Reply
#3

AUTO_INCREMENT
Reply
#4

i know it's possible withaut getting the value, it's something like that:

pawn Код:
format(Query1, sizeof(Query1), "UPDATE `usrinv` SET `user_invited` +1 WHERE `user_code` = '%i' LIMIT 1", code);
Reply
#5

Update a value like so

Either +1
or ++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)