Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> ORA-01858
The following SQL works well without the last line, once I add the
last line, I get ORA-01858.
I am not sure why it works in the SELECT but not in the WHERE clause.
We have Oracle 9.2.0.7.
select msg, source, msg_type, svr_cd,
to_date(substr(msg,instr(msg,'Eff Dt:') + 8,10), 'mm/dd/yyyy')
from hotlist
where fnctn = 'ROUTE'
and source = 'SRF Data'
and (sysdate - 30) > to_date(substr(msg,instr(msg,'Eff Dt:') + 8,10),
'mm/dd/yyyy')
Any suggestions/thoughts are appreciated
Thanks Received on Wed Feb 28 2007 - 15:16:31 CST