選擇4-6的條數(shù)
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的條數(shù)
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;