原文: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-2025 CODEPRJ.COM