fb可以改名字吗:distinct如何按升序排序

来源:百度文库 编辑:高校问答 时间:2024/05/01 03:55:42
select distinct area2 from area where address='"&team1&"'"

请问如何按area_id升序,area2有很多重复的值
楼下的,distinct 和 order by area_id 不能这样同时使用的

楼主心情可以理解,不过别重复发贴哦,要相信大家。

http://zhidao.baidu.com/question/4841659.html

你这个帖子里我已经回答了,就不copy过来了。

select distinct area2 from area where address='"&team1&"'" order by area_id

order by 排序字段
order by 排序字段 desc 升序