当我在SQL Developer中执行该查询时,它可以正常工作,但是当我尝试在IBM BPM Server Script中执行它时,我得到此错误“SQL命令未正确结束”,为什么会这样?
这是我的查询
tw.local.sql = "SELECT Extract(MONTH FROM TRAININGDB.USERDETAILS2.DATEOFBIRTH), COUNT (TRAININGDB.USERDETAILS2.DATEOFBIRTH) FROM TRAININGDB.USERDETAILS2GROUP BY Extract(MONTH FROM TRAININGDB.USERDETAILS2.DATEOFBIRTH)";
答案 0 :(得分:0)
根据我对您的代码剪切/粘贴的阅读,您在“GROUP BY”之前缺少一个空格 -
... FROM TRAININGDB.USERDETAILS2GROUP BY ...
-AP