Sql max 当两条记录取值字段相同时取另一字段中值大的一条怎么写,谢谢

日期:2017-02-03 15:59:01 人气:1

Sql max 当两条记录取值字段相同时取另一字段中值大的一条怎么写,谢谢

select top 1 金额,时间 from tab order by 金额 desc, 时间 desc
    A+
热门评论