+2 votes
1 view
in SQL by (47.8k 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.3k 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
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...