选择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;
选择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
网友评论