tqj-zyy

select 要使用字段1,要使用字段2 from 表名 where id in (select min(id) from 表名 group by 不重复字段名)

比如:

 select myid,id from chat where id in (select min(id) from chat group by myid)

分类:

技术点:

相关文章:

  • 2021-11-21
  • 2021-08-16
  • 2021-04-30
  • 2021-12-28
  • 2021-11-11
  • 2021-08-16
  • 2021-08-16
  • 2021-11-17
猜你喜欢
  • 2021-11-07
  • 2021-11-17
  • 2021-11-07
  • 2021-11-07
  • 2021-11-07
  • 2021-11-07
  • 2021-12-03
相关资源
相似解决方案