My frontend is Java and backend is MySql.
The tables that I create have auto incrementing primary keys.
This is the syntax of my create statement :-
Expand|Select|Wrap|Line Numbers
- Create table ABC(ID Int not null auto_increment primary key,SubjectID Int not null,Level Varchar(20) not null,Duration Int not null,index(SubjectID),foreign key(SubjectID) references Subjects(SubjectID));
For eg I have 10 records in a table each having ID as 1,2,3..so on in a sequential order and now I delete record no 3 and then insert a new record(Id: 11) then its inserted in place of 3..so it now shows 1,2,11,4,5,...10
How can I avoid this?
Thanks in advance.