Click here to Skip to main content
15,891,674 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
I have some database tables in which i made a column ''id'' a primary key with auto increment. I've been running into problems with accessing the data in the tables using say
SQL
Select   first_name From info Where id = 1

after clear all records in the table. It seems like the auto increment feature still continues from the last number it recorded before i cleared the database. Please can someone tell me how to make it start afresh to count after i've cleared the table. Thanks.
Posted
Updated 9-Jan-13 6:57am
v3

1 solution

 
Share this answer
 
Comments
fjdiewornncalwe 9-Jan-13 12:57pm    
+5.
Maciej Los 14-Jan-13 15:00pm    
Nice link, +5!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900