select * from (select my_table.*, rownum as my_rownum from (select * from 表名 (where 条件[没有条件是可以表名后面东西省去,多个条件加and 条件]) order by 列名) my_table where rownum <=20) where my_rownum >10
为10到20行纪录,把定死的20,10改了就为分页语句了。
posted on
2006-07-18 07:28彭灿明
阅读(272)
评论(0)
编辑收藏举报