Link to home
Start Free TrialLog in
Avatar of rgb192
rgb192Flag for United States of America

asked on

set index to 1

i deleted all the rows of my table

but the 'id' auto increment column is still at the same number

I want it to start at 1 again
ASKER CERTIFIED SOLUTION
Avatar of radcaesar
radcaesar
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
And, next time, try using TRUNCATE TABLE yourtablename if you can.

TRUNCATE not only removes all the rows but it also does it faster and it resets the Identity column's seed so that it starts at 1.
Avatar of rgb192

ASKER

thanks