sql语句去重复数据方法是什么?sql语句去重复数据技巧

如图所示,图标上有两个重复的数据,那么要过滤掉重复的数据需要怎么做的呢?

方法一: 用distinct过滤掉多余的数据。

例如:以下语语句

select distinct university from user_profile;

方法二: group by + count + min 去掉重复数据

猜你喜欢

转载自blog.csdn.net/qq_44361142/article/details/128182752
今日推荐