2張表select tb1.name as name,tb1.id as id,(select count(1) from tb2 where tb1.type = tb2.type) as countfrom tb1用sequelize的方法應(yīng)該怎么去實(shí)現(xiàn),得到這樣的結(jié)果是用include嗎,還有where怎么寫(xiě)。
sequelize 關(guān)聯(lián)查詢中,count另外個(gè)表中的某個(gè)字段該怎么做
繁星點(diǎn)點(diǎn)滴滴
2018-08-10 14:02:59