分页的存储过程
来源:互联网 发布:编程猫 知乎 编辑:程序博客网 时间:2024/05/22 11:43
procedure query(page number,sub_id number,cur out mycur) is
v_begin number;
v_end number;
begin
v_begin:=rows_per_page*(page-1);
v_end:=rows_per_page*page;
open cur for
select b.problem_title,b.problem_option from
(select a.*,rownum as row1 from
(select * from table_problemdepot where subject_id=sub_id) a where rownum<=v_end)b
where row1> v_begin ;
end;
end controlPage;
注意:必须放在包中
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 存储过程的分页!!
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 分页的存储过程
- 存储过程的分页
- 忠告,男人、女人各100条
- Effective C++之25
- 结束军训
- 深入浅出话回调(上)
- NUMERICAL ANALYSIS
- 分页的存储过程
- 请教对单片机感兴趣的前辈
- VC++动态链接库编程之MFC规则DLL
- VC++动态链接库编程之DLL典型实例
- 利用VC+OpenGL实现几种特殊图形效果
- 充分理解Socket
- MFC中用正则表达式进行有效性验证
- Visual C++中为普通程序添加ODBC应用
- JDBC连接各种数据库方式速查表