mysql去除重复查询的方法:1、使用distinct,代码为【select distinct name from a where statesign=0】;2、使用group by,代码为【statesign=0 group by .】。

mysql去除重复查询的方法: 1:使用distinct select distinct name from a where statesign=0 查询表a中的name字段,去除重复记录 2:使用group by select name from a where statesign=0 group by name 查询表a中的name字段,分组,去除重复记录 相关学习推荐:mysql视频教程
以上就是mysql如何去除重复查询的详细内容,更多请关注模板之家(www.mb5.com.cn)其它相关文章! |