Answer the question
In order to leave comments, you need to log in
How to maintain a connection to the current H2 table in the database?
Good afternoon !
I'm just getting familiar with H2 DB and here's a question.
Here is the connection being created:
Connection connection=null;
try{
Class.forName("org.h2.Driver");
connection= DriverManager.getConnection("jdbc:h2:~/test");
System.out.println("Connection ok");
Statement stat = connection.createStatement();
stat.execute("create table test(id var(255) primary key, name varchar(255), age int)")
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question