摘要:
一、使用to_char函数,返回第几周,并按第几周进行group by统计: select sum(sal) , to_char(HIREDATE,'yyyy')||':'||to_char(HIREDATE,'IW') week_sn from scott.emp group by to_char(HIREDATE,'yyyy')||':'||to_char(HIREDATE,'IW'); 其中格式'IW'返回当前日期是当年的第几周。二、使用next_day()函数:select 阅读全文
posted @ 2013-09-02 11:21
IT_熊
阅读(2892)
评论(0)
推荐(0)

浙公网安备 33010602011771号