select to_char(sysdate,'dd-mon-rr hh24:mi:ss')st from dual;
12-jul-16 09:24:51
Im my form,I have written the below code:
select to_char(sysdate,'dd-mon-rr hh24:mi:ss')st from dual;
| if (st<=sysdate||' 11:00:00') | then |
:text_item42:='yes';
else
:text_item42:='no';
end if;
But this goes to the else part and the text item shows 'no'.09:24:51 is obviously less than '11:00:00'.
Pls help on this.