先看表中的数据

mysql 使用group by 语句获取分组后,最新的时间的数据

获取同一个articelid下的最新的审核状态

sql语句:

select * from check_info where id in (select substring_index(group_concat(id order by checktime desc),',',1) as checkid    from check_info group by articleid )
mysql 使用group by 语句获取分组后,最新的时间的数据 

相关文章:

  • 2021-08-28
  • 2023-03-05
  • 2022-12-23
  • 2021-06-02
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
  • 2021-11-18
  • 2022-12-23
相关资源
相似解决方案