For Example Ive Got Two Fields id And Name.Id Is An int + Autoincrement And Also A Primary Key and name is a Varchar(20) If I Insert A Record In The Table , Id Is Auto Incremented But When I Delete Any Record It Leaves A Gap Between Numbers . For Example If I Delete 2nd Row Then Id After Record One Comes Directly Record 3 How Do I Fix So That Record 3 Becomes Record 2. if you cant follow me here is an example:
Normal:
ID Name
1 Alex
2 John
3 ByteCode
After Ive Deleted Record 2 (John)
ID Name
1 Alex
3 ByteCode
See Record#3 DirectlyComes After Record#1
How Do I Do So Whenever I Delete Any Record The Id Get Fixed (In ABove Case 3 Becomes 2)
Thanks In Advance