Hi, I want to delete the contents of my table so that when I add a new row after my auto increment index starts again at 1, how do I achieve this?
You mean "DELETE FROM table"?
you can also do "TRUNCATE TABLE tablename", that resets auto_increment counter from version 5.0.13 of mysql
__________________________________________
I study Information Systems at Karlstad University when I'm not on CodeCall
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks