select * from (select top 50 * from map1 order by time desc) order by msg
这样取出的结果最后是按msg进行排序的,但是相同的msg是按照time进行降序排列的,怎么去掉time的这个排序
前提是取前50的数据时,必须按time进行降序排列
select * from map1 order by msg desc,time desc limit 0,50
select top 50 * from tb order by msg,time desc
order by 后面可以跟多个排序字段,你自己试试
select * from ((select top 50 * from map1 order by time desc) order by msg)order by 其它字段啦比如id啥的