1. 程式人生 > >create table DEFAULT あるとき、後にNOT NULL

create table DEFAULT あるとき、後にNOT NULL



CREATE TABLE "JTBSMPL"."MST_006_MANAGER"
   ( "KANRISHI_CODE" VARCHAR2(7),
 "KANA_NAME" VARCHAR2(30 CHAR) NOT NULL ENABLE,
 "AREA_CODE" VARCHAR2(3 CHAR) NOT NULL ENABLE,
 "MAIL_ADDRESS" VARCHAR2(60) NOT NULL ENABLE,
 "PASSWORD" VARCHAR2(7) NOT NULL ENABLE,
 "BIKO" VARCHAR2(80 CHAR) DEFAULT NULL,
 "PASSWORD_UPDATE_DATE" TIMESTAMP (6) DEFAULT sysdate NOT NULL,
 "INITIAL_PASSWORD" NUMBER (1) DEFAULT 1 NOT NULL,
 "FAILURE_COUNT" NUMBER (1) DEFAULT 0 NOT NULL,
 "LOCK_FLAG" NUMBER (1) DEFAULT 0 NOT NULL,
 "LOGIN_LOCK_DATE" TIMESTAMP (6) DEFAULT NULL,
 "LOGIN_DATE" TIMESTAMP (6) DEFAULT sysdate NOT NULL,
 "DELETE_FLAG" NUMBER(1) DEFAULT 0 NOT NULL,
 "REGISTER_DATE" TIMESTAMP (6) DEFAULT NULL,
 "REGISTER_USER_ID" VARCHAR2(10) DEFAULT NULL,
 "LAST_MODIFY_DATE" TIMESTAMP (6) DEFAULT NULL,
 "LAST_MODIFY_USER_ID" VARCHAR2(10) DEFAULT NULL,
  PRIMARY KEY ("KANRISHI_CODE")
  USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "JTB_DATA"  ENABLE
   ) SEGMENT CREATION IMMEDIATE
  PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
  STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
  PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)
  TABLESPACE "JTB_DATA"