Id Number Is Incorrect

Hi guys,

I am newbie in yii framework currently I have try to create the simple website by yii framework

anyone can help about my issue ?

when I deleted the ID why the ID number does not go back to previous number ?

thanks,

shen

I’m guessing you are using SQL database and autoincrement for ID.

Check this information http://www.w3schools.com/sql/sql_autoincrement.asp

The database engine keeps track of the next ID to insert and it doesn’t change when you delete a record. It can be reset, but it won’t fill gaps in the middle of the range, it will just look for the highest value in the column and add 1.