第一页, 前10项

select  *  from atb 
where id <((select  min(id)  from atb)+10)

 


最后1页,10项

select  *  from atb 
where id >((select  max(id)  from atb)-10)