I have .sql files that have only insert statements. While importing those to the already exists h2db.mv.db(Version 1.4.192) file I am getting the below error
Exception in thread "main" org.h2.jdbc.JdbcSQLIntegrityConstraintViolationException: Unique index or primary key violation: "PUBLIC.CONSTRAINT_INDEX_C ON PUBLIC.GROUPS(ID)
VALUES 1"; SQL statement:
The command for importing statements is
java -cp h2-1.4.199.jar org.h2.tools.RunScript -url jdbc:h2:file:./h2db -script dump.sql