mysql怎么获取前10条数据再做时间排序?

我写的查询select * from Showroom where SType=1 and SShow=1 and SID>=0 limit 10 order by sid DESC 怎么就出错呢?有什么办法能获取前10条数据再做时间排序?

select * from Showroom where SType=1 and SShow=1 and SID>=0 order by sid DESC limit 10

---------
order by 与 limit 的顺序反了。-_-!!
温馨提示:内容为网友见解,仅供参考
第1个回答  2009-07-25
select * from (select top 10 * from showroom where SType=1 and SShow=1 and SID>0 limit 1,10)A order by sid desc
第2个回答  2009-07-25
select * from (
select * from Showroom where SType=1 and SShow=1 and SID>=0 limit 10
) t order by sid DESC
相似回答
大家正在搜