I finally find the reason why I had the syntax error.
I am actually running a SchemaExport/SchemaUpdate
with Hibernate and I did not specify a delimiter in the SQL statement.
To specify a delimiter, use the setDelimiter
method. For instance,
export.setDelimiter(";");
update.setDelimiter(";");
By the way, to identify syntax errors in H2 with SQL statements, find the *
in the statement and it will give the line of your error.