Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+2 votes
2 views
in SQL by (47.6k points)

How can I reset the AUTO_INCREMENT of a field? I want it to start counting from 1 again.

1 Answer

+4 votes
by (40.7k points)
edited by

Try this code:

ALTER TABLE Table_Name AUTO_INCREMENT=1

Want to learn SQL from basics! Here's the right video for you on SQL provided by Intellipaat:

Related questions

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...