ORA-01830: date format picture ends before converting entire input string / Select sum where date query
问题 I am trying to execute my query through Java like this: public ResultSet execSumStatment2() throws SQLException{ String query = "Select SUM(A) as NCCSeptember from NCC where Datum >= '01-09-2013 00:00:00' and Datum <= '30-09-2013 23:59:59'"; return execStatement(query); } Then i call execSumStatement in the class: sql.execSumStatement2 () ; When I run it I get the following error message: java.sql.SQLDataException: ORA-01830: date format picture ends before converting entire input string at