mirror of
https://github.com/Vonng/ddia.git
synced 2026-06-21 00:47:05 +08:00
commit
71ea02b283
1 changed files with 1 additions and 1 deletions
|
|
@ -440,7 +440,7 @@ GROUP BY observation_month;
|
|||
|
||||
`date_trunc('month', timestamp)` 函数用于确定包含 `timestamp` 的日历月份,并返回代表该月份开始的另一个时间戳。换句话说,它将时间戳舍入成最近的月份。
|
||||
|
||||
这个查询首先过滤观察记录,以只显示鲨鱼家族的物种,然后根据它们发生的日历月份对观察记录果进行分组,最后将在该月的所有观察记录中看到的动物数目加起来。
|
||||
这个查询首先过滤观察记录,以只显示鲨鱼家族的物种,然后根据它们发生的日历月份对观察记录结果进行分组,最后将在该月的所有观察记录中看到的动物数目加起来。
|
||||
|
||||
同样的查询用 MongoDB 的 MapReduce 功能可以按如下来表述:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue