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