例如一个表 b1 中有50条记录,其中一个属性是" a1 ",为整数
现在我需要从大到小排好它并选出前10条语句 P.S. MYSQL不支持嵌套查询?
1.支持嵌套查询 select * from t order by a1 desc limit 10 嵌套需要给子查询一个别名,
例如select * from (select * from t order by a1 desc limit 10) t1后面那个t1不能少
SELECT * Top10 FROM b1 ORDER BY a1 DESC
select * from b1 order by a1 desc limit 10