SQL语句中的语法错误 - H2错误42001

Sno*_*Bro 6 sql h2

运行此SQL语句时:

select TimeInterval, 
       ((((Timer*60)/1.0)*100)/((10.0*60)/60.0)) as 'Throughput-run_1_8_11' 
from StatExternalData, StatisticDefinition 
where StatisticDefinition.ID=StatExternalData.StatDefId 
      and StatisticName='PSI_CompTran_Successful_Cnt'  
order by TimeInterval asc
Run Code Online (Sandbox Code Playgroud)

我收到此错误:

"select TimeInterval, ((((Timer*60)/1.0)*100)/((10.0*60)/60.0)) as 'Throughput-run_1_8_11'[*] from StatExternalData, StatisticDefinition where StatisticDefinition.ID=StatExternalData.StatDefId and StatisticName='PSI_CompTran_Successful_Cnt'  order by TimeInterval asc"; 
expected "identifier"; [42001-185]
Run Code Online (Sandbox Code Playgroud)

我已经发现[*]表示该语句的哪一部分是不正确的,并且H2错误代码42001表示一个无效的SQL语句,但是我已经敲了几个星期试图弄清楚是什么问题是,有谁有想法?

Sim*_*wig 3

我遇到过同样的问题:

我的实体看起来像这样:

@Entity
public class ShopCommentRating {

@NotNull
private Boolean like;

}
Run Code Online (Sandbox Code Playgroud)

生成的查询包含 [*]

要消除错误,我必须将字段名称更改为某。像这样:

@Entity
public class ShopCommentRating {

@NotNull
private Boolean commentLike;

}
Run Code Online (Sandbox Code Playgroud)

“小写驼峰式”名称