group by 在sequelize中是如何工作的?
我正在通过 Sequelize 查找 group by
查询,但似乎找不到任何文档.
I am looking for group by
queries through Sequelize and cannot seem to find any documentation.
SELECT column, count(column)
FROM table
GROUP BY column
推荐答案
问题:https://github.com/sequelize/sequelize/issues/348
User.findAll({
group: ['field']
})
我使用 sequelize@2.0.0-dev9
i use sequelize@2.0.0-dev9
相关文章