select a.id,a.ip,a.creationTime from myTable a right join (
select max(id) id from myTable group by ip) b on b.id = a.id
where a.id is not null

或者

select a.* from myTable a right join (
select max(id) id from myTable group by ip) b on b.id = a.id
where a.id is not null

表名为myTable

MySQL查询某个字段不重复的所有记录

相关文章:

  • 2021-06-19
  • 2022-01-13
  • 2022-12-23
  • 2021-11-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2021-06-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案