微信扫一扫
问题描述:
需要得到时间最近的一条记录,但是按照时间字段排完序之后,得到的是全部。
解决办法:
order by createtime desc //降序;asc:升序 LIMIT 1
相关推荐