codice:
update tabella set id = id - 1 where id > 0
sull'utilità non mi pronuncio.