Home > database >  Grouping mongo query
Grouping mongo query

Time:09-23

Through group two tables associated query, statistic number,
Similar to SQL
The SELECT t2. ` name `, t2. Id, count (1) as the count FROM A t1, Bt2 where t1. The type_id=t2. The id GROUP BY t2. ` name `, t2. Id;
How to in directing a write
  • Related