少年阿賓

          那些青春的歲月

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            500 Posts :: 0 Stories :: 135 Comments :: 0 Trackbacks

          常用鏈接

          留言簿(22)

          我參與的團隊

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          -- 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) 評論(0)  編輯  收藏 所屬分類: oracle
          主站蜘蛛池模板: 栖霞市| 寻甸| 汶川县| 大城县| 金湖县| 丽水市| 双流县| 周宁县| 托克托县| 本溪| 福鼎市| 夹江县| 新平| 精河县| 广德县| 定安县| 犍为县| 万宁市| 横山县| 子长县| 山丹县| 江油市| 马关县| 剑阁县| 英山县| 泌阳县| 金寨县| 察隅县| 商河县| 晋中市| 桑日县| 上杭县| 元谋县| 宁陵县| 颍上县| 扶绥县| 海原县| 芦溪县| 达州市| 张北县| 高淳县|