27,579
社区成员
发帖
与我相关
我的任务
分享
--2
select * from tb where 时间 between 时间1 and 时间;
select * from tb t where not exists(select 1 from tb where id=t.id and 时间>a.时间)
select * from tb where 时间 between @sdate and @edate
1.
select * from tb t where 时间=(select max(时间) from tb where id=t.id)