Last active
August 10, 2025 20:15
-
-
Save irazasyed/4253470 to your computer and use it in GitHub Desktop.
Revisions
-
Syed I.R renamed this gist
Jun 9, 2013 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Syed I.R created this gist
Dec 10, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,6 @@ -- your_table: The table to modify -- id: The id field/column to reset SET @num := 0; UPDATE your_table SET id = @num := (@num+1); ALTER TABLE your_table AUTO_INCREMENT =1;