<分区>
下面的代码给出了
ORA-00933: SQL command not properly ended
在
private final String DUPLICATE_SQL_1="select abc, count(abc)"
+"from table_1"
+"where type= 'NEW'"
+"and trunc(update_date) = trunc(sysdate)"
+"group by abc having count(abc)>1";
ResultSet rs = stmt.executeQuery(DUPLICATE_SQL_1);
相同的查询在 Oracle SQL Developer 上运行良好。