原创地址:https://blog.csdn.net/qq_40012458/article/details/121745497
感谢博主的文章!别人已经写得很不错了,我就不写了,写个语句放在这里供参考
SELECT
id,project_id,progress_content
FROM
(
SELECT DISTINCT(id),project_id, progress_content FROM tb_projectprogress ORDER BY id DESC
) AS tpp
GROUP BY
project_id