首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

关于mysql中distinct的用法?解决方案

2013-11-20 
关于mysql中distinct的用法?在使用distinct时,如需要返回两个或者多个字段时,需要注意?mysql[解决办法]哦,

关于mysql中distinct的用法?
在使用distinct时,如需要返回两个或者多个字段时,需要注意? mysql
[解决办法]
哦,这个都一样的,

比如一个字段:

select distinct xxx from tb

如果是2个字段:

select distinct xxx,yyy from tb
[解决办法]
顶楼上
select distinct xxx,yyy from tb。
如果两条记录的XXX,YYY完全相等时才会被去重

热点排行