调取N篇最新文章,然后随机输出
select * from (
select *
from table1
order by updatetime desc
limit 10
) t
order by rand();
那么如果我要调取最新的第10-20篇文章,这怎么取呢?可以衍生为调取任何一部分数据了,请指教!