Created
July 23, 2017 11:51
-
-
Save febridev/3c53c85a72612b52d651298af78a09c2 to your computer and use it in GitHub Desktop.
update loop id mysql
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 characters
set @newid=0; | |
update users set ID = (@newid:=@newid+1) order by ID; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment