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

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -