Answers for "how to auto increment id after delete value in php mysql"

PHP
0

how to auto increment id after delete value in php mysql

SET @num := 0;

UPDATE your_table SET id = @num := (@num+1);

ALTER TABLE tableName AUTO_INCREMENT = 1;

/*************     OR     ***********/
ALTER TABLE table_name AUTO_INCREMENT=1
Posted by: Guest on February-04-2021

Code answers related to "how to auto increment id after delete value in php mysql"

Browse Popular Code Answers by Language