2

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?

AlphaWolf
  • 319
  • 1
  • 3
  • 12
  • 1
    [Multiple queries executed in java in single statement](http://stackoverflow.com/questions/10797794/multiple-queries-executed-in-java-in-single-statement) – peterm Feb 18 '13 at 04:43

1 Answers1

1

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.

DebugMedve
  • 134
  • 4