📜  mysql 查询唯一列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:21.301000             🧑  作者: Mango

代码示例1
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;