Is there a way to reset a table?
I mean not only deleting all rows, but starting the auto_incrementing ID back to 0?
To remove all data:
TRUNCATE TABLE tablename
To reset the auto-increment:
ALTER TABLE tablename AUTO_INCREMENT = 1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With