关于tp的查询,获取最后发送的5条数据,并按升序排列怎么写呢

浏览:879 发布日期:2019/12/28 分类:ThinkPHP5专区
原生的语句:select * from (select * from table order by time desc limit 10) temp order by time

用tp的order怎么写呢 求大神指教
需求:数据库中查询聊天记录,想要获取最近的10条聊天记录(根据time列)然后升序排列
最佳答案
评论( 相关
后面还有条评论,点击查看>>