Creating a table in h2 database using sequence for primary key
I am trying to create a table in an H2 database. How do I specify that the
primary key should be generated from a sequence that has been created?
The sequence is called group_seq, and I created it using this statement:
CREATE SEQUENCE GROUP_SEQ;
So when I create the table, how do I specify that I want my primary key
col (ID) to use that sequence?
No comments:
Post a Comment