How to get a list of unique year from mysql database.
Есть 30 записей (`id`, `name`, `year`). 1, test, 2015 2, test, 2016 3, test, 2014 4, test, 2015 5, test, 2015 I want to get a list of
2015, 2014, 2016 How to get a list of unique year from mysql database.
Есть 30 записей (`id`, `name`, `year`). 1, test, 2015 2, test, 2016 3, test, 2014 4, test, 2015 5, test, 2015 I want to get a list of
2015, 2014, 2016 distinct - to select unique elements
select distinct year from table Source: https://ru.stackoverflow.com/questions/539883/
All Articles