get unique values mysql code example
Example 1: mysql query unique column
SELECT DISTINCT(column_name) FROM your_table_name;
#You can select distinct values for one or more columns. The column names has to be separated with comma.
SELECT DISTINCT column_name_1, column_name_2 FROM your_table_name;
Example 2: distincct sql
SELECT DISTINCT column1, column2, ...
FROM table_name;