欧美男女网站_18禁网站免费无遮挡无码中文_国产人妻777人伦精品hd_91超级碰碰_国产三级大全_精品无码国模私拍视频

Rss & SiteMap

曙海教育集團論壇 http://www.bjzhda.cn

曙海教育集團論壇
共1 條記錄, 每頁顯示 10 條, 頁簽: [1]
[瀏覽完整版]

標題:Oracle PLSQL中用pro進行 BULK COLLECT 的高效率查詢處理

1樓
wangxinxin 發表于:2010-12-11 11:09:53
過程樣例:
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  --批量選擇數據
      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;
共1 條記錄, 每頁顯示 10 條, 頁簽: [1]

Copyright © 2000 - 2009 曙海教育集團
Powered By 曙海教育集團 Version 2.2
Processed in .02344 s, 2 queries.
主站蜘蛛池模板: 亚洲涩涩 | 91精品综合久久久久久五月天 | 日韩一级二级三级 | 有色视频在线观看 | 国产日韩在线视频 | 精品国产制服丝袜高跟 | 午夜影视大全 | 伊人久久青青草 | 免费av网站在线看 | 美女在线播放 | 手机看片国产日韩 | 黄色大片在线播放 | 亚洲精品在线观看网站 | 日韩精品一区二区在线 | 91网站在线看 | 黄91在线观看 | 成年人视频在线免费观看 | 欧美亚洲在线视频 | 肉视频在线观看免费 | 黄色一级网 | 欧美成人一级片 | 日本欧美国产在线 | 亚洲午夜免费 | 亚洲狼人综合 | 亚洲精品91在线 | 国产91久久久| 欧美伊人久久 | 天天干天天爽天天操 | 五月天黄色网址 | 日本三级韩国三级美三级91 | 日本不卡中文字幕 | 全部免费毛片 | 免费av毛片 | 成人影视免费 | 亚洲天堂网在线观看 | 国产亚洲精品码 | 亚洲国产精品99久久久久久久久 | 国产美女久久久久久 | 国产三级小视频 | 成人在线观看一区 | 欧美日韩国产不卡 |