在MySQL中,用DISTINCT(去重)关键字去重
select Ssex from Student;
比如在Student表中,查询性别如下
若想要只显示该列的非重复项,则用到distinct
select distinct Ssex from Student;