时间:2021-07-01 10:21:17 帮助过:78人阅读
SELECT * FROM pc_record WHERE name LIKE '小明' LIMIT 1
order by id desc
或者发布时间 desc
SELECT * FROM pc_record WHERE name LIKE '小明' order by id desc LIMIT 1
在语句后加order by id DESC
order by id desc,根据id从大到小排序,limit 1 取第一个,就是取id最大的那个,最新的那个