Check out example codes for "h2 auto increment and unique". It will help you in understanding the concepts better.

Code Example 1

drop table test;
create table test(id bigint auto_increment, name varchar(255));
insert into test(name) values('hello');
insert into test(name) values('world');
select * from test;

Learn ReactJs, React Native from akashmittal.com