Mysql去重显示

在MySQL中,用DISTINCT(去重)关键字去重

select Ssex from Student;

比如在Student表中,查询性别如下

 

 若想要只显示该列的非重复项,则用到distinct

select distinct Ssex from Student;

 

posted @ 2023-02-26 16:31  若染咩  阅读(56)  评论(0)    收藏  举报
2 3
4