select * from table as a inner join 
 ( 
 select MAX(dtmcreateDate) as datetimes,lngExposureID from table group by lngExposureID
 ) as  b on a.lngExposureID = b.lngExposureID and a.dtmcreateDate = b.datetimes

思路:根据类型group,取出最新时间数据,在根据联合主键查询出其他列

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-12-26
猜你喜欢
  • 2021-05-11
  • 2022-12-23
  • 2021-08-10
  • 2021-09-14
  • 2021-07-23
  • 2021-08-31
  • 2021-11-20
相关资源
相似解决方案