You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
2.6 KiB
53 lines
2.6 KiB
--------------------------------------------------------
|
|
-- DDL for Table CUR_LOC_STATUS
|
|
--------------------------------------------------------
|
|
|
|
CREATE TABLE "MIRLE"."CUR_LOC_STATUS"
|
|
(
|
|
"STORAGE_ID" VARCHAR2(6 CHAR),
|
|
"LOC_ID" VARCHAR2(9 CHAR),
|
|
"LOC_STATUS" VARCHAR2(1 CHAR) DEFAULT 'N',
|
|
"CARRIER_ID" VARCHAR2(64 CHAR),
|
|
"PROGRAM_NAME" VARCHAR2(30 CHAR),
|
|
"UPDATE_USER" VARCHAR2(30 CHAR),
|
|
"UPDATE_TIME" TIMESTAMP (6) DEFAULT systimestamp
|
|
)
|
|
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 "SYSTEM" ;
|
|
|
|
COMMENT ON COLUMN "MIRLE"."CUR_LOC_STATUS"."STORAGE_ID" IS '儲存區編號';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_LOC_STATUS"."LOC_ID" IS '儲位編號';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_LOC_STATUS"."LOC_STATUS" IS '儲位狀態';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_LOC_STATUS"."CARRIER_ID" IS '載具編號';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_LOC_STATUS"."PROGRAM_NAME" IS '程式名稱';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_LOC_STATUS"."UPDATE_USER" IS '更新人員';
|
|
COMMENT ON COLUMN "MIRLE"."CUR_LOC_STATUS"."UPDATE_TIME" IS '更新時間';
|
|
|
|
--------------------------------------------------------
|
|
-- DDL for Index CUR_LOC_STATUS_PK
|
|
--------------------------------------------------------
|
|
|
|
CREATE UNIQUE INDEX "MIRLE"."CUR_LOC_STATUS_PK" ON "MIRLE"."CUR_LOC_STATUS" ("STORAGE_ID", "LOC_ID")
|
|
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 "SYSTEM" ;
|
|
|
|
--------------------------------------------------------
|
|
-- Constraints for Table CUR_LOC_STATUS
|
|
--------------------------------------------------------
|
|
|
|
ALTER TABLE "MIRLE"."CUR_LOC_STATUS" MODIFY ("STORAGE_ID" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_LOC_STATUS" MODIFY ("LOC_ID" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_LOC_STATUS" MODIFY ("LOC_STATUS" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_LOC_STATUS" MODIFY ("PROGRAM_NAME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_LOC_STATUS" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_LOC_STATUS" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
|
|
ALTER TABLE "MIRLE"."CUR_LOC_STATUS" ADD CONSTRAINT "CUR_LOC_STATUS_PK" PRIMARY KEY ("STORAGE_ID", "LOC_ID")
|
|
USING INDEX "MIRLE"."CUR_LOC_STATUS_PK" ENABLE;
|