I have a Filename.sql(Mysql Script) file which has multiple SQL Statements. I'm using MyBatis as persistence framework and MySQL as the database. I want to execute the Filename.sql file in a Java program.
NOTE: I don't want to execute the queries as separate SQL Statements.
This operation is equivalent to source Filename.sql in MySQL command prompt.