Example has been inserted into the table because there is no entry with the key id is there now if we are trying to insert data on the position 1 or 2 then
INSERT INTO table_name VALUES (1,’Name_changed’) ON DUPLICATE KEY UPDATE name=’Name_changed’;