【发布时间】:2012-10-23 10:58:33
【问题描述】:
我有这个功能
我需要在 sql(hibernate 或 mysql)或影响结果数组的 java 函数中执行此操作
我需要一个按天分组的结果
从 propCode.propClass 中选择 DAY(prop.docCreationDate), count(prop.docfullName) 作为 prop where prop.docCreationDate >= '" + startDate + " 00:00:00' and prop.docCreationDate
i have this entitie count in my table
2012-10-05 3
2012-10-06 0
2012-10-07 7
2012-10-08 13
2012-10-09 9
2012-10-10 0
2012-10-11 0
2012-10-12 3
the request return me this values
5 3
7 7
8 13
9 9
12 3
in this way i loose three lignes that have 0 as value, i need a request that return me this
5 3
6 0
7 7
8 13
9 9
10 0
11 0
12 3
【问题讨论】: