会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Ace007
博客园
首页
新随笔
联系
订阅
管理
2019年12月4日
sql 分组后重复数据取时间最新的一条记录
摘要: 1.取时间最新的记录 不分组有重复(多条CreateTime一样的都是最新记录) select * from test t where pid in ( select PId from Test t where time=(select max(time) from Test t1 where t1
阅读全文
posted @ 2019-12-04 10:28 Ace001
阅读(24904)
评论(1)
推荐(4)
编辑
公告