mongodb - mongo 的group用法
为情所困
为情所困 2017-04-28 09:05:24
0
2
661

mongo的group怎么能想MySQL一样select * from XX group by xx 输出所有的值

为情所困
为情所困

reply all(2)
Ty80

Use aggreat*, and then write in the $group
_id field what you want to group

Peter_Zhu

Use MongoDB’s aggregation operation (aggregate), please see the official documentation for details, click here

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!