MongoDB 聚合

MongoDB 聚合 MongoDB中聚合(aggregate)主要用於處理數據(諸如統計平均值,求和等),並返回計算後的數據結果。有點類似sql語句中的 count(*)。 aggregate() 方法 MongoDB中聚合的方法使用aggregate()。 語法 aggregate() 方法的基本語法格式如下所示: db.COLLECTION_NAME.aggregate(AGGREGATE_
相關文章
相關標籤/搜索