Reputation: 379
How to run .sql file using java without manually parsing the document. Is there any prewritten class to do the parsing if it has to be done?
Upvotes: 2
Views: 177
Reputation: 134
I'm not sure but this may help you.
In MySQL JDBC implementation: setLocalInfileInputStream() sets an InputStream instance that will be used to send data to the MySQL server for a LOAD DATA LOCAL INFILE statement rather than a FileInputStream or URLInputStream that represents the path given as an argument to the statement.
Upvotes: 1