insert into test (age) values (5) ;update test set age=51 where id=4; insert into test (age) values (51) on duplicate key update age=54 ;