Update MongoDB_聚合.md

This commit is contained in:
heibaiying 2019-07-31 14:42:37 +08:00 committed by GitHub
parent d09df055c8
commit 155739bf97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,7 @@ db.employees.aggregate(
}
```
如果你想计算所有员工的年龄总和、平均年龄、以及员工总数,则可以将 $group 管道阶段的 _id 字段设置为 null 语句如下:
如果你想计算所有员工的年龄总和、平均年龄、以及员工总数,则可以将 $group 管道阶段的 _id 字段设置为 null ,如下:
```shell
db.employees.aggregate(