Dear all,
Following sql statement execute successfully in Oracle DBMS. However, "not a valid month" error occurs when I execute this statement in Java. What's wrong with this statement? Anything I should beware when using embedded sql in Java?
String test = "select pur_id, pur_date, confirmed,completed from purrec where pur_date between TO_DATE('12-12-02', 'DD-MON-YYYY') and TO_DATE('12-01-03', 'DD-MON-YYYY')";
ResultSet result=stmt.executeQuery(test);
Thanks for your help.
Joyce
Following sql statement execute successfully in Oracle DBMS. However, "not a valid month" error occurs when I execute this statement in Java. What's wrong with this statement? Anything I should beware when using embedded sql in Java?
String test = "select pur_id, pur_date, confirmed,completed from purrec where pur_date between TO_DATE('12-12-02', 'DD-MON-YYYY') and TO_DATE('12-01-03', 'DD-MON-YYYY')";
ResultSet result=stmt.executeQuery(test);
Thanks for your help.
Joyce