美文网首页
分页sql语句

分页sql语句

作者: 8dc010427b39 | 来源:发表于2017-01-20 09:15 被阅读0次

选择4-6的条数

t是表的别名

oracel

select  * from(select t.* , rownum rn from (select * from 表名 order by id) t where rownum<=6) where rn>=4;

mysql

select * from 表名 limit 4,6;

相关文章

网友评论

      本文标题:分页sql语句

      本文链接:https://www.haomeiwen.com/subject/vxpibttx.html