Hello Bobby, i have used H2 in memory,
When you make the connection using the url you specified, your
database is created in memory,
but this db is empty an do not contain any personnal table, thats why
your are having errors
so what you have to do is just create your tables by an sql
statement,and you can use an sql script file to init your db
this is a sample code that could help :
// load the driver class
Class.forName("org.h2.Driver");
Connection con = DriverManager.getConnection("jdbc:h2:mem:mytest",
"sa", "");
// here you create the table
String s = "CREATE TABLE test (id INTEGER, name char(50), last_name
char(50), age INTEGER)";
Statement sst = con.createStatement();
sst.executeUpdate(s);
Elie
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/h2-database?hl=en
-~----------~----~----~----~------~----~------~--~---