sql 按天然周,月,季度,年統計

參見兄弟的博客http://yuanyong.iteye.com/blog/451383 很不錯哦。呵呵 //按天然周統計 select to_char(date,'iw'),sum() from where group by to_char(date,'iw') //按天然月統計 select to_char(date,'mm'),sum() from where group by to_cha
相關文章
相關標籤/搜索