17,377
社区成员
发帖
与我相关
我的任务
分享
--以星期天为一周的开始
select count(*)
from a
where create_date between trunc(sysdate,'d') and trunc(sysdate,'d')+7
--以星期一为一周的开始
select count(*)
from a
where create_date between trunc(sysdate,'d')+1 and trunc(sysdate,'d')+8