Mysql查询表中字段值最大的10个数据记录

Mysql查询表中字段值最大的10个数据记录

sql语句的写法:

 

select * from 表 order by 要最大值的字段 desc limit 0,10

 

select a.*, b.*, c.* from 表1, 表2, 表3 order by a.id(要最大值的字段) desc limit 0,10

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容