运行此 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
我收到此错误:
"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]
我发现 [*] 表示语句的哪一部分不正确,而 H2 错误代码 42001 表示无效的 SQL 语句,但我已经数周来一直在努力想弄清楚是什么问题是,有人有想法吗?
原文由 SnoBro 发布,翻译遵循 CC BY-SA 4.0 许可协议
我通过重命名我的实体解决了这种错误代码。看来,某些名称被解释为查询命令-.-