来自于:苦痛自渡~冷暖自知
    —本周
    select from 表 where time > sysdate - (to_char(sysdate-1,’D’))
    —本月
    select
    from 表 where time>=TRUNC(SYSDATE, ‘MM’) and time<=last_day(SYSDATE)
    —本年
    select * from 表 where to_char(time,’yyyy’)=to_char(sysdate,’yyyy’)