Hi,

Thanks! I did a bit more and support multiple statements:

java org.h2.tools.Shell -url jdbc:h2:test -sql "select 'hello'; select
'world' from dual"

Using the following:

ScriptReader r = new ScriptReader(new StringReader(sql));
while (true) {
    String s = r.readStatement();
    if (s == null) {
        break;
    }
    execute(s);
}

Regards,
Thomas

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/h2-database?hl=en.

Reply via email to