- 论坛徽章:
- 0
|
文本如下。需要把红色的几行删除掉。以PCTFREE开始,迟到出现; 替换为 ; 不知道怎么实现。先谢谢大家了。
CREATE CLUSTER "TK"."C_CM_TSHM" ("PHONE_ID" VARCHAR2(10), "OP_TIME"
DATE) PCTFREE 10 PCTUSED 40 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL
4194304 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE
"TS_PUB" ;
CREATE TABLE "TK"."A" ("B" NUMBER(8, 0), "C" NUMBER(5, 0)) PCTFREE 10
PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS
1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TS_BUSI_DAT_01"
NOLOGGING NOCOMPRESS ;
CREATE TABLE "TK"."ACC_BOOK_CHG_NOTIFY" ("SO_NBR" NUMBER(15, 0) NOT
NULL ENABLE, "ACCT_ID" NUMBER(12, 0) NOT NULL ENABLE, "BOOK_ITEM_ID"
NUMBER(7, 0) NOT NULL ENABLE, "VALID_DATE" DATE NOT NULL ENABLE,
"BALANCE" NUMBER(12, 0) NOT NULL ENABLE, "CREATE_DATE" DATE) PCTFREE
10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(INITIAL 4194304
FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE
"TS_BUSI_DAT_01" LOGGING NOCOMPRESS ;
ALTER TABLE "TK"."ACC_BOOK_CHG_NOTIFY" MODIFY ("BALANCE" DEFAULT 0 ) ;
CONNECT TK;
CREATE UNIQUE INDEX "TK"."PK_ACC_BOOK_CHG_NOTIFY" ON "ACC_BOOK_CHG_NOTIFY"
("SO_NBR" , "ACCT_ID" , "BOOK_ITEM_ID" , "VALID_DATE" ) PCTFREE 10
INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST
GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "TS_BUSI_IND_01" LOGGING ;
ALTER TABLE "TK"."ACC_BOOK_CHG_NOTIFY" ADD CONSTRAINT
"PK_ACC_BOOK_CHG_NOTIFY" PRIMARY KEY ("SO_NBR", "ACCT_ID",
"BOOK_ITEM_ID", "VALID_DATE") USING INDEX PCTFREE 10 INITRANS 2
MAXTRANS 255 STORAGE(INITIAL 4194304 FREELISTS 1 FREELIST GROUPS 1
BUFFER_POOL DEFAULT) TABLESPACE "TS_BUSI_IND_01" LOGGING ENABLE ; |
|