隨筆-204  評論-90  文章-8  trackbacks-0
          DDL

          -- Create sequence
          create sequence SEQ_TAB_900
          minvalue 1
          maxvalue 999999999999999999
          start with 21
          increment by 1
          cache 20;

          -- Create table
          create table TAB_900
          (
            ID      NUMBER not null,
            MOBILE  VARCHAR2(2),
            INSDATE DATE,
            constraint pk_tab_900 primary key (ID),
            constraint fk_tab_900 foreign key (ID) references tab_xxx(id)
          )
          -- Create/Recreate primary, unique and foreign key constraints
          alter table TAB_900
            add constraint PK_TAB_900 primary key (ID);

          posted on 2007-04-13 17:22 一凡 閱讀(220) 評論(0)  編輯  收藏 所屬分類: DATABASE
          主站蜘蛛池模板: 错那县| 英德市| 天等县| 台中县| 常山县| 崇左市| 西贡区| 博罗县| 永泰县| 鹤壁市| 慈利县| 周至县| 南川市| 东兴市| 通州区| 石屏县| 龙里县| 榆中县| 隆回县| 烟台市| 博客| 中西区| 洛宁县| 临汾市| 凌云县| 灌云县| 伊吾县| 奉新县| 雷波县| 涟水县| 云梦县| 延吉市| 通渭县| 云和县| 新兴县| 东莞市| 蕉岭县| 冷水江市| 和静县| 静乐县| 宣化县|