天灵副武器连招:如何在 DISTINCT的同时对记录排序

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

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