zoukankan      html  css  js  c++  java
  • asp.net中分页的代码(For Oracle and VS2005 C#)

    代码是针对于AspNetPager写的。环境为oracle+VS2005

    代码如下:

    using System;
    using System.Text;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    using System.Data;
    using System.Collections;

    namespace Manager.Common
    {
        
    /// <summary>
        
    /// Pager 分页
        
    /// zyl 
        
    /// version: 2.0
        
    /// </summary>

        public class Pager
        
    {
            
    public Pager()
            
    {
                
    //
            }


            
    分页函数模板, 我的代码,别动


            
        }

    }


    下面是存储过程

    -- 通用的分页过程
    --
     zyl 
    --
     2006-6-6
    create or replace procedure p_pager
    (
       select_total_sql 
    varchar2-- 用以结果的查询的语句
       pager_sql varchar2-- 用以分页语句
       total out number,   -- 查询得出的总条数
       cur out sys_refcursor  -- 返回结果集
    )is
    cur_tmp sys_refcursor;
    begin
       
    open cur_tmp for select_total_sql;
       
    fetch cur_tmp into total;
       
    close cur_tmp;
       
    open cur for pager_sql;
    end;
  • 相关阅读:
    windows-DLL注入
    HDU 2148 Score
    HDU 2133 What day is it
    HDU 2112 HDU Today
    HDU 2187 悼念512汶川大地震遇难同胞——老人是真饿了
    HDU 2124 Repair the Wall
    HDU 2117 Just a Numble
    HDU 2114 Calculate S(n)
    HDU 2115 I Love This Game
    HDU 2104 hide handkerchief
  • 原文地址:https://www.cnblogs.com/qkhh/p/869639.html
Copyright © 2011-2022 走看看