如何在IF里判断当前时间大于早上7点并且小于晚上7点。
------解决方案--------------------
- SQL code
if(to_date(to_char(sysdate,'hh24:mi:ss'),'hh24:mi:ss')>to_date('07:00:00','hh24:mi:ss') and to_date(to_char(sysdate,'hh24:mi:ss'),'hh24:mi:ss')<to_date('19:00:00','hh24:mi:ss')) thenend if;