mongo中有许多重复的id,去重只保留一个,sql如下
可以参考文章
db.outboundCustomer.aggregate([{
$match: {
status: 'notsent'
}
}, {
$group: {
_id: "$sfdcId",<
mongo中有许多重复的id,去重只保留一个,sql如下
可以参考文章
db.outboundCustomer.aggregate([{
$match: {
status: 'notsent'
}
}, {
$group: {
_id: "$sfdcId",<