select * from a where b=1000
    就要个这样的查询存储过程 

解决方案 »

  1.   

    b=1000指的是什么
    分页一般用到两种办法:
    1,利用rownum
    2,分析函数row_number()over()1.select from(
      select t.*,rownum rn from(
        select * from a
        order by col1)t
      where rn between 101 and 200)
    2.
      select *
      from(select t.*,row_number()over(order by col1)rn
        from t)
      where rn between 101 and 200
      

  2.   

    表有序列ID?或者索引?
    直接用序列ID或者有序索引分页就好了
      

  3.   

    Oracle 分页存储过程,你自己去网上找吧,我昨天就写这个玩意,很简单的。