欧美日韩一区二区高清,久久视频这里只有精品,超黄网站在线观看,成人av影院在线观看

以文本方式查看主題

-  曙海教育集團論壇  (http://www.martymets.com/bbs/index.asp)
--  Oracle數(shù)據(jù)庫  (http://www.martymets.com/bbs/list.asp?boardid=65)
----  Oracle PLSQL中用pro進行 BULK COLLECT 的高效率查詢處理  (http://www.martymets.com/bbs/dispbbs.asp?boardid=65&id=2506)

--  作者:wangxinxin
--  發(fā)布時間:2010-12-11 11:09:53
--  Oracle PLSQL中用pro進行 BULK COLLECT 的高效率查詢處理
過程樣例:
create or replace procedure real_user as
  c_count number(10);
begin

  DECLARE
    TYPE mobile_type IS TABLE OF mobile_dabenying.mobile%TYPE;  --按表字段類型來定義變量類型
    t_mobile mobile_type := mobile_type();
  
  BEGIN
    select mobile BULK COLLECT  --批量選擇數(shù)據(jù)
      INTO t_mobile
      from (select mobile from mobile_dabenying order by mobile);
  
    if (t_mobile.COUNT > 0) then
      FOR i IN t_mobile.FIRST .. t_mobile.LAST LOOP
      
        select count(*)  --從號段中過濾
          into c_count
          from mobile_region
         where t_mobile(i) between start_mobile and end_mobile;
      
        if (c_count > 0) then
          c_count := 0;
          insert into mobile_dabenying2 (mobile) values (t_mobile(i));  --真實用戶
        else
          dbms_output.put_line(t_mobile(i));
          insert into mobile_dabenying3 (mobile) values (t_mobile(i));  --假用戶
        end if;
      
      END LOOP;
    end if;
  
  END;

end;

主站蜘蛛池模板: 晋州市| 石柱| 长治县| 乳源| 资阳市| 玉环县| 城固县| 绥中县| 鹤峰县| 如皋市| 武平县| 仪陇县| 闵行区| 安庆市| 襄樊市| 手游| 唐河县| 民丰县| 招远市| 林芝县| 抚顺市| 封开县| 健康| 白朗县| 镇宁| 西宁市| 昭通市| 伊宁市| 瑞昌市| 松阳县| 古浪县| 崇义县| 城步| 莱芜市| 偏关县| 东辽县| 涟水县| 六安市| 纳雍县| 清镇市| 晋中市|