I have a sql-file containing several statements like this:
create table user (
name varchar(255) not null,
active INTEGER default 1 not null,
valid_from DATETIME not null,
valid_to DATETIME not null,
primary key (name));
I would like to re-use this already existing file for test-purposes.
How can I load this from Java into H2 to create a new schema?
以上就是Load schema into h2 from sql-file in java的详细内容，更多请关注web前端其它相关文章！