--outTotal是需要返回的总数,v_loginUserId是传入的登录人ID,抽取他的客户,v_CurrPage是传入的第几页,v_pageSize传入的每页数据条数. ) FROM tb_cus_customerinfo tc where tc.f_manageuserid = v_loginUserId), ) into fCount FROM dual; outTotal := fCount; SELECT ttt.* FROM (select tt.*, rownum as f_i…
注:本示例来源于韩顺平[10天玩转oracle数据库]视频教程 1.创建包同时创建游标 create or replace package pagingPackage is type paging_cursor is ref cursor; end; / 2.创建分页存储过程 create or replace procedure paging_cursor ( v_in_table in varchar2, v_in_pagesize in number, v_in_pagenow in nu…
撰写过程:网上搜集测试了好多的Oracle分页存储过程代码,经整理后终于通过测试,特分享给大家 测试步骤:1.运行创建包命令;2.运行创建存储过程命令;3.运行调用分页存储过程语句 测试环境:windows2003+Oracle11g+PLSQL Developer --1.创建包命令 create or replace package mypackage as type cursor_page is ref cursor; Procedure myprocdure( …