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.
|
|
--------------------------------------------------------
-- DDL for Table HIS_LOC_STATUS
--------------------------------------------------------
CREATE TABLE "MIRLE"."HIS_LOC_STATUS" ( "STORAGE_ID" VARCHAR2(6 CHAR), "LOC_ID" VARCHAR2(9 CHAR), "LOC_STATUS" VARCHAR2(1 CHAR), "CARRIER_ID" VARCHAR2(64 CHAR), "PROGRAM_NAME" VARCHAR2(30 CHAR), "UPDATE_USER" VARCHAR2(30 CHAR), "UPDATE_TIME" TIMESTAMP (6), "HISTORY_TIME" TIMESTAMP (6) DEFAULT systimestamp ) SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING TABLESPACE "SYSTEM" ;
COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."STORAGE_ID" IS '儲存區編號'; COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."LOC_ID" IS '儲位編號'; COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."LOC_STATUS" IS '儲位狀態'; COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."CARRIER_ID" IS '載具編號'; COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."PROGRAM_NAME" IS '程式名稱'; COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."UPDATE_USER" IS '更新人員'; COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."UPDATE_TIME" IS '更新時間'; COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."HISTORY_TIME" IS '寫入時間';
--------------------------------------------------------
-- DDL for Index HIS_LOC_STATUS_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "MIRLE"."HIS_LOC_STATUS_PK" ON "MIRLE"."HIS_LOC_STATUS" ("HISTORY_TIME") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS TABLESPACE "SYSTEM" ;
--------------------------------------------------------
-- Constraints for Table HIS_LOC_STATUS
--------------------------------------------------------
ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("HISTORY_TIME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("STORAGE_ID" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("LOC_ID" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("LOC_STATUS" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("CARRIER_ID" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("PROGRAM_NAME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("UPDATE_USER" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("UPDATE_TIME" NOT NULL ENABLE); ALTER TABLE "MIRLE"."HIS_LOC_STATUS" ADD CONSTRAINT "HIS_LOC_STATUS_PK" PRIMARY KEY ("HISTORY_TIME") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS TABLESPACE "SYSTEM" ENABLE;
|