亚洲免费乱码视频,日韩 欧美 国产 动漫 一区,97在线观看免费视频播国产,中文字幕亚洲图片

      1. <legend id="ppnor"></legend>

      2. 
        
        <sup id="ppnor"><input id="ppnor"></input></sup>
        <s id="ppnor"></s>

        Oracle數(shù)據(jù)庫(kù)分頁(yè)功能的實(shí)現(xiàn)

        字號(hào):


            Oracle數(shù)據(jù)庫(kù)分頁(yè)功能的實(shí)現(xiàn),具體代碼如下:
            create or replace procedure pro_page(table_name in varchar2,page in number,line in number,in_where in varchar2,p_cursor out sys_refcursor)
            as
            --out 返回參數(shù)
            --in 輸入?yún)?shù)
            --in out 返回參數(shù)
            v_sql varchar2(200);
            v_where varchar2(200);
            begin
            ---判斷條件
            if length(in_where) = 0 or in_where is null then
            v_where := '1=1';
            else
            v_where := in_where;
            end if;
            --獲得sql語(yǔ)句
            v_sql:='select * from( select t1.*,rownum num from '||t_name||' t1 where rownum<= ' ||(page*line)||' and '||v_where
            ||') where num >= ' || ((page-1)*line);
            --執(zhí)行sql語(yǔ)句
            open p_cursor for v_sql;
            end pro_page;