If you want to use it in your select then you have to use variables, however if you want to use it in your where you can use place holders. Place holders dont work in selects.
So, you can do this select count(*) from dual where todate (?, 'dd-mon-yyyy') < sysdate
Update: Removed a completely incorrect statement. thx tommyw.
In reply to Re: Oracle Dates DBD
by Ryszard
in thread Oracle Dates DBD
by gwhite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |