少年阿賓

          那些青春的歲月

            BlogJava :: 首頁(yè) :: 聯(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 閱讀(528) 評(píng)論(0)  編輯  收藏 所屬分類: oracle
          主站蜘蛛池模板: 建宁县| 紫阳县| 吴堡县| 岢岚县| 景谷| 东平县| 安多县| 叶城县| 伊宁县| 望都县| 东城区| 黄大仙区| 巩留县| 大足县| 内黄县| 江源县| 军事| 扶风县| 瑞金市| 靖州| 铅山县| 乐亭县| 凌云县| 翼城县| 盐亭县| 麻阳| 漳浦县| 柳江县| 平谷区| 宁都县| 浠水县| 莎车县| 西青区| 方正县| 茶陵县| 黄梅县| 宜宾县| 全州县| 大渡口区| 德庆县| 云浮市|