sql语句如何排重

比如select * from student;
这个语句如何排除重复信息

你的意思是重复的记录只显示一次是吧?语句是:
select distinct * from student;
温馨提示:内容为网友见解,仅供参考
第1个回答  2018-05-11
这个叫去重,SQL SERVER 中用DISTINCT ,即:select distinct 字段名 from 表名;
第2个回答  2019-06-23
distinct 去除重复 关键字
第3个回答  2018-12-08
select distinct * from student
第4个回答  2012-11-05
select distinct * from student;
相似回答