Java 使用hibernate.hbm2ddl.import\u文件执行sql脚本时出错?

Java 使用hibernate.hbm2ddl.import\u文件执行sql脚本时出错?,java,sql,hibernate,h2,Java,Sql,Hibernate,H2,我使用h2db和hibernate4 我想从实体自动生成db模式,并从import.sql文件填充db。下面是相关的hibernate.cfg.xml: hibernate运行此sql语句时,会出现错误: квіт 23, 2015 8:56:43 PM org.hibernate.tool.hbm2ddl.SchemaExport importScript ERROR: HHH000388: Unsuccessful: insert into Borrower values (

我使用h2db和hibernate4

我想从实体自动生成db模式,并从import.sql文件填充db。下面是相关的hibernate.cfg.xml:

hibernate运行此sql语句时,会出现错误:

    квіт 23, 2015 8:56:43 PM org.hibernate.tool.hbm2ddl.SchemaExport importScript
    ERROR: HHH000388: Unsuccessful: insert into Borrower values (1,"Greece, Aphines, Square street",5,"Antonio")
    квіт 23, 2015 8:56:43 PM org.hibernate.tool.hbm2ddl.SchemaExport importScript
    Column "Greece, Aphines, Square street" not found; SQL statement:
insert into Borrower values (1,"Greece, Aphines, Square street",5,"Antonio") [42122-186]
在insert into语句中添加列名没有帮助

这似乎是h2数据库的错误


此错误是什么意思?

请尝试将双引号替换为单引号,如下所示:

insert into Borrower values (1,'Greece, Aphines, Square street',5,'Antonio');

请尝试将双引号替换为单引号,如下所示:

insert into Borrower values (1,'Greece, Aphines, Square street',5,'Antonio');

谢谢。在h2中,双引号是什么意思?我还发现去掉MySQL的反引号也能让它工作。非常感谢。在h2中,双引号是什么意思?我还发现,去掉MySQL的反引号也能让它工作。
insert into Borrower values (1,'Greece, Aphines, Square street',5,'Antonio');