i have a problem in sqlite database connected with iphone sdk for eg. when i put values in lets say upto 5 primary key.but when i delete them all and put new values ,then the integer primary key start from 6 and not from 1 or 0?what is the reason for that?
+1
A:
You are using identity (also called autoincrement) field for the key. It's value is set to 0 when you create the table and increments every time you insert a row. It never comes back though.
spbfox
2010-08-26 05:08:26
thanks i will see
pankaj kainthla
2010-08-26 05:15:42
You are very welcome.
spbfox
2010-08-26 05:28:59