I\'m trying to write a bit of code that reads a SQL file (multiple CREATE TABLE statements separated by ;) and executes all the statements.
CREATE TABLE
;
In
Maybe Spring's ScriptUtils will be useful in your case. Especially executeSqlScript methods.
executeSqlScript
Note that DEFAULT_STATEMENT_SEPARATOR has a default value of ';' (see Constant Field Values)
DEFAULT_STATEMENT_SEPARATOR
';'