not sure if u face this strange behavior on MySQL table before: when the table field is default as NULL
, I do a simple UPDATE
statement run no problem. if I were to issue field=field+1
then the value is not update. Then what i did is to insert 0
into the field and run the same field=field+1
again then it works.
UPDATE table1 SET field=field+1 WHERE id=123;
is this expected behavior?
p/s: the field
type is double