I have been having trouble finding a solution to this that works so I hoped you guys could help.
I am trying to automatically increment a value without working out what value it is already. The query I am trying is this.
UPDATE test SET order = order +1 WHERE id = '1'
Both the 'id' and 'order' are column type of int. From what I can tell this should be fine but mysql is returning a syntax error.
Any suggestions would be appreciated.
Thanks,
Damien.