原文:oracle查詢一個時間段每天的數據量

.需求: 從所有數據中,查出一個時間段中每天的數據量,即:按日做匯總。 .SQL語句模板: select trunc date col date, sum num col num, count col num from table name where to char date col, yyyymm group by trunc date col .親測有效 ...

2016-10-18 15:05 0 1971 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2026 CODEPRJ.COM