mysql 去重 +排序 取最新的数据
作者:互联网
SELECT t.* FROM
(SELECT log_search_content, MAX(log_create_date) log_create_date FROM t_full_text_search_log GROUP BY log_search_content) tmp
LEFT JOIN t_full_text_search_log t ON t.log_search_content = tmp.log_search_content
AND t.log_create_date = tmp.log_create_date
标签:tmp,search,log,create,content,最新,mysql,date,排序 来源: https://www.cnblogs.com/AutumnSilence/p/16252588.html