se você insistir UPDATE mytable SET id = id + 1 where id > 5 ORDER BY id ASC insert into mytable (id,..) values (6,...)