SELECT a.* FROM product_template a INNER JOIN (SELECT p_id,MAX(ID) as max_id FROM product_template where state >= 1
GROUP BY p_id DESC ) b ON a.p_id=b.p_id AND a.ID=b.max_id where a.p_id in ('207','229','46')

相关文章:

  • 2021-12-31
  • 2021-12-03
  • 2022-12-23
  • 2021-06-28
  • 2022-12-23
  • 2021-08-03
  • 2021-11-23
  • 2022-12-23
猜你喜欢
  • 2021-12-31
  • 2021-04-13
  • 2021-12-31
  • 2021-12-31
  • 2021-07-23
相关资源
相似解决方案