我想应该可以用
if to_number(to_char(sysdate,'hh24'))>=9 and 
   to_number(to_char(sysdate,'hh24'))<=17 then      后跟处理命令