少年阿賓

          那些青春的歲月

            BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
            500 Posts :: 0 Stories :: 135 Comments :: 0 Trackbacks
          -- Create table
          create table ABING1
          (
            ID         INTEGER not null,
            CREATETIME DATE default sysdate not null,
            FIRSTNAME  NVARCHAR2(100) not null,
            LASTNAME   CLOB not null,
            MIDDLENAME NCLOB not null
          )
          tablespace USERS
            pctfree 10
            initrans 1
            maxtrans 255
            storage
            (
              initial 64K
              minextents 1
              maxextents unlimited
            );
          -- Create/Recreate primary, unique and foreign key constraints
          alter table ABING1
            add constraint PK_ABING primary key (ID)
            using index
            tablespace USERS
            pctfree 10
            initrans 2
            maxtrans 255
            storage
            (
              initial 64K
              minextents 1
              maxextents unlimited
            );




          create or replace procedure abin55(abing in varchar2,abin out sys_refcursor)
          as
          begin
          declare
          createtime date:=to_date(abing,'yyyy:MM:dd HH24:MI:SS');
          cursor mycur is select * from abing1 t where t.createtime=createtime;
          abin mycur%rowtype;
          begin
          open mycur;
          loop
               fetch mycur into abin;
               exit when mycur%NOTFOUND;
          end loop;
          close mycur;
          end;
          end;
          posted on 2012-08-15 00:57 abin 閱讀(525) 評(píng)論(0)  編輯  收藏 所屬分類: oracle
          主站蜘蛛池模板: 开封市| 抚松县| 当雄县| 兴安盟| 哈尔滨市| 杭锦后旗| 馆陶县| 个旧市| 滁州市| 甘德县| 台安县| 永登县| 军事| 泗洪县| 滁州市| 洪江市| 斗六市| 石柱| 容城县| 渭南市| 大理市| 桂东县| 福清市| 运城市| 嘉黎县| 浦江县| 寿阳县| 山阳县| 沂源县| 天气| 黑水县| 泰顺县| 神木县| 安顺市| 和龙市| 德格县| 红桥区| 安徽省| 屏东市| 峨边| 元氏县|