任何人都可以帮助我吗?我想计算流星中的集合,但我不知道代码。我想在SQL "SELECT category,COUNT(category) FROM table GROUP BY category);') "
这样的代码的代码,该代码如何统计集合中的值?
" SELECT unit,category,COUNT(category)
FROM table where unit like "%'.$searchtype.'%" GROUP BY unit, category;')"
请我需要你的帮助。
我做了这样的编码,但它没有功能。 Template.count_status.helpers(){profile:function(){ return Profile.find({status:'Available', category:{$ in:['NB','LCD']}, })。count (); } }); –