DISTINCT - MySQL

7 views
Skip to first unread message

Daniel Infante

unread,
Apr 13, 2016, 12:45:10 PM4/13/16
to Sequelize
Hello everybody!


How do I make a distinct in my select findAll () ?


SELECT DISTINCT name FROM table_names
-------------------------------------------------------------------

Model.findAll({
 attributes: ['name'],
 distinct: true
})

?????????????

Thank you!
Reply all
Reply to author
Forward
0 new messages