错误:SQL查询

时间:2018-03-07 10:28:51

标签: sql postgresql-9.3

大家好我正在运行此查询以从数据库表中获取一些数据。

select pickup, supplier, sum(price)
from myrent_prices_to 
where (pickup BETWEEN '2018-01-01' and '2018-07-31')
and location SIMILAR TO '(%)' 
and vehicleclass SIMILAR TO '(%)'
and supplier SIMILAR TO '(%)' 
group by pickup, supplier

但它在下面给出了错误:

  

org.eclipse.birt.report.engine.api.EngineException:发生错误   在运行报告时。在   org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.doRun(DatasetPreviewTask.java:135)     在   org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.runDataset(DatasetPreviewTask.java:97)     在   org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.execute(DatasetPreviewTask.java:49)     在   org.eclipse.birt.report.designer.data.ui.dataset.DataSetPreviewer.preview(DataSetPreviewer.java:69)     在   org.eclipse.birt.report.designer.data.ui.dataset.ResultSetPreviewPage $ 5.run(ResultSetPreviewPage.java:336)     在   org.eclipse.jface.operation.ModalContext $ ModalContextThread.run(ModalContext.java:121)   引起:org.eclipse.birt.data.engine.odaconsumer.OdaDataException:   无法获取结果集元数据。       org.eclipse.birt.report.data.oda.jdbc.JDBCException:SQL语句不返回ResultSet对象。 SQL错误#1:错误:语法错误   在“组”附近或附近位置:236;       org.postgresql.util.PSQLException:错误:“group”处或附近的语法错误位置:236 at

0 个答案:

没有答案