Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

reset id auto increment after deleting a table row in phpmyadmin

SET @autoid :=0; 
UPDATE table_name SET id = @autoid:=(@autoid+1);
ALTER TABLE table_name AUTO_INCREMENT=1;
 
PREVIOUS NEXT
Tagged: #reset #id #auto #increment #deleting #table #row #phpmyadmin
ADD COMMENT
Topic
Name
4+2 =