I have an init script for my MySQL database but for test purposes I wan't to use a H2 database. Anyone knows how to convert the file or at least has a list of the syntax differences ? thanks.
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- php PDO::FETCH_ASSOC doesnt detect select after ba
- sqlyog export query result as csv
There are a number of database tools that help migrating data from one to another database, for example:
I saw this on the iConomy FAQ (http://ico.nexua.org/Main/FAQ#toc28):
java -cp h2*.jar org.h2.tools.Script -url jdbc:h2:path/to/minecraft -user sa -password sa
Here is a good instruction by Matthew Casperson
Exporting from MySQL to H2
Here is a short list of steps, to convert from mysql to h2:
CREATE TABLE `user` ( `name` varchar(20) NOT NULL,
convert to
CREATE TABLE
user
(name
varchar(20) NOT NULL,