【发布时间】:2017-05-22 01:00:52
【问题描述】:
我有值的表
id country
1 india
2 usa
3 india
我需要使用 sequelize.js 从 country 列中找到不同的值
这里是我的示例代码...
Project.findAll({
attributes: ['country'],
distinct: true
}).then(function(country) {
...............
});
有什么方法可以找到不同的值
【问题讨论】:
标签: node.js express sequelize.js