Yedek al önce

$i=1; $h=500;
for($i=1; $i <= 800; $i++) {
mysql_query("Update tabloadi set Id='$i' where Id='$h'");
$h++;
}