2张表select tb1.name as name,tb1.id as id,(select count(1) from tb2 where tb1.type = tb2.type) as countfrom tb1
用sequelize的方法应该怎么去实现,得到这样的结果是用include吗,还有where怎么写。
阿晨1998
相关分类