sql分页
select * from (select a.*,ROWNUM rn from (select * from 表明 where t.flag=1) a ) where RN>=开始的行数 and RN例如:select * from (select a.*,ROWNUM rn from (select * from prj t where t.flag=1) a ) where RN>=10 and RN在oracle数据库上测试过,其他的数据库不知道能不能兼容
原创
2011-04-07 14:24:00 ·
228 阅读 ·
0 评论