2016年7月4日

SQL语句 查询最新记录

摘要: 要求:SQL语句按ID以最新时间查询最新的一条记录 方法1: select * from (select *, ROW_NUMBER() over(partition by id order by updateDate desc) as num from table) b where num=1 o 阅读全文

posted @ 2016-07-04 15:37 zhucheng88 阅读(734) 评论(0) 推荐(0)

导航

Document