數(shù)據(jù)加載中……

          2011年9月7日

          trigger

          create or replace trigger pm4h_hw_db.t_get_sys_bhstore
            after insert on pm4h_ad.sys_bhstore
          declare
            pragma autonomous_transaction;
            tablename varchar2(64);
            cursor cr is
              select bhtable from pm4h_ad.sys_bhstore where bhmodelid = 'TODBH';
          begin
            open cr;
            fetch cr
              into tablename;
            while cr%found loop
              if fun_is_exists_table(tablename) = 0 then
                pm4h_hw_db.create_bh_table(tablename);
              end if;
              fetch cr
                into tablename;
            end loop;
            close cr;
          end pm4h_hw_db.t_get_sys_bhstore;

          posted @ 2011-09-07 16:45 陳碧滔 閱讀(118) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 桦南县| 柳河县| 枣庄市| 图木舒克市| 淮南市| 西昌市| 西乌| 灵川县| 安康市| 洪洞县| 奉贤区| 漠河县| 栾城县| 大安市| 镶黄旗| 图木舒克市| 呼和浩特市| 保德县| 阿勒泰市| 江门市| 江都市| 虹口区| 谢通门县| 汉川市| 灵丘县| 阳西县| 安图县| 长寿区| 泊头市| 新郑市| 精河县| 朝阳县| 会同县| 元朗区| 五常市| 桦南县| 英德市| 祁阳县| 泸州市| 南丹县| 师宗县|