Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

reorder primary key mysql

SET  @num := 0;
UPDATE your_table SET id = @num := (@num+1);
 
PREVIOUS NEXT
Tagged: #reorder #primary #key #mysql
ADD COMMENT
Topic
Name
9+6 =