java - Jdbc sql syntax error for date -
resultset resultobj = statementobj.executequery("select employee_id job_history start_date > convert(datetime, '2001-01-13' )");
i error while iam executing program:
java.sql.sqlsyntaxerrorexception: ora-00904: "datetime": invalid identifier
if using oracle, use oracle syntax:
select employee_id job_history start_date > date '2001-01-13';
the date
keyword allows use iso-standard syntax date constants.
Comments
Post a Comment