實現按周,月,季度,年查詢統計數據

oracle 實現按周,月,季度,年查詢統計數據 //按天然周統計 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_char(date,'mm') //按季統計 select t
相關文章
相關標籤/搜索