我正在通过 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
这篇关于group by 在sequelize中是如何工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!