How to create a new database in H2

2,740 views
Skip to first unread message

Raghs

unread,
Feb 17, 2009, 5:52:02 PM2/17/09
to H2 Database
Hi All,

Is there a provision to execute a SQL statement like 'CREATE DATABASE
<myDB>;" which is there in MySQL? I had been trying to create a new
database in H2 but no luck. When I looked at the syntax, there is no
provision for the same except "CREATE TABLE". There is one another
alternative is, "CREATE SCHEMA". Will that be of some help?

Thanks,
Raghavan alias Saravanan M.

Thomas Mueller

unread,
Feb 18, 2009, 1:06:23 AM2/18/09
to h2-da...@googlegroups.com

Raghavan.30May1981_GMail

unread,
Feb 18, 2009, 4:58:28 AM2/18/09
to h2-da...@googlegroups.com
Hi Thomas,

 Thanks for the link. Shall look into that.

Cheers,
Raghavan alias Saravanan M.
http://groups.google.com/group/S_H_a_D_E

"Do not break the bridge that you might need to cross someday!!!" - Wisemen.
Reply all
Reply to author
Forward
0 new messages