I have a situation where I need to copy data from HSQLDB
text tables to MYSQL
using java and INSERT into...as SELECT...
. Not sure how to go from here.
...
Connection hcon = DriverManager.getConnection(param1); #hsql connection
...
Connection mscon = DriverManager.getConnection(param2); #mysql connection
...
Statement htmt = hcon.createStatement();
Statement mstmt = mscon.createStatement();
...
#How do I reference MySQL here?
ResultSet r = hstmt.executeQuery("insert into mysqlemp as select * from hsqlemp");
I am aware there is a LOAD DATA INFILE...
to load text into table and its not an option for me.