high尖叫声怎么喊:如何在 DISTINCT的同时对记录排序

来源:百度文库 编辑:神马品牌网 时间:2024/05/21 12:14:50
select DISTINCT reg_name from info order by ddate
说明:表info中reg_name地记录不唯一,所以想找出reg_name唯一的记录,希望找到的唯一一条记录是ddate(日期型)最新的,请高手指点。

可以用一个degree
在数据库书上有