sql set auto increment back to 0
ALTER TABLE `table` AUTO_INCREMENT = 0
sql set auto increment back to 0
ALTER TABLE `table` AUTO_INCREMENT = 0
sql delete row with auto increment
SET @num := 0;
UPDATE tableName SET id = @num := (@num+1);
ALTER TABLE tableName AUTO_INCREMENT = 1;
<!-- @Zenonymous -->
does sql auto increment start at number if it is removed?
"Does sql auto increment start at the number if it is removed?"
NO
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us