I have this simple table (for test only):
create table table ( key int not null primary key auto_increment, name varchar(30) );
Then I execute the following queries:
insert into table values ( null , 'one');// key=1 insert into table values ( null , 'two');// key=2
At this stage, everything is going well, then I close the H2 Console and open it again and re-execute this request:
insert into table values ( null , 'three');// key=33
Finally, here are all the results:

I do not know how to solve this problem if it is a real problem ... awaiting the author's response ...
auto-increment h2
Marwen trabelsi
source share