Yes, there are several solutions. One of them is to run the SQL SCRIPT statement:
SCRIPT TO 'fileName'
Another way is to use the Script tool:
java org.h2.tools.Script -url <url> -user <user> -password <password>
In addition, there is a RUNSCRIPT statement and a RunScript tool.
By the way, you should consider upgrading to a later version of H2. In newer versions, two .data.db and .index.db files are combined into a .h2.db file.
Thomas Mueller Jul 15 '10 at 19:23 2010-07-15 19:23
source share