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.

51 lines
2.5 KiB

8 months ago
  1. --------------------------------------------------------
  2. -- DDL for Table HIS_LOC_STATUS
  3. --------------------------------------------------------
  4. CREATE TABLE "MIRLE"."HIS_LOC_STATUS"
  5. (
  6. "STORAGE_ID" VARCHAR2(6 CHAR),
  7. "LOC_ID" VARCHAR2(9 CHAR),
  8. "LOC_STATUS" VARCHAR2(1 CHAR),
  9. "CARRIER_ID" VARCHAR2(64 CHAR),
  10. "PROGRAM_NAME" VARCHAR2(30 CHAR),
  11. "UPDATE_USER" VARCHAR2(30 CHAR),
  12. "UPDATE_TIME" TIMESTAMP (6),
  13. "HISTORY_TIME" TIMESTAMP (6) DEFAULT systimestamp
  14. )
  15. SEGMENT CREATION DEFERRED
  16. PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255
  17. NOCOMPRESS LOGGING
  18. TABLESPACE "SYSTEM" ;
  19. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."STORAGE_ID" IS '儲存區編號';
  20. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."LOC_ID" IS '儲位編號';
  21. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."LOC_STATUS" IS '儲位狀態';
  22. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."CARRIER_ID" IS '載具編號';
  23. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."PROGRAM_NAME" IS '程式名稱';
  24. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."UPDATE_USER" IS '更新人員';
  25. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."UPDATE_TIME" IS '更新時間';
  26. COMMENT ON COLUMN "MIRLE"."HIS_LOC_STATUS"."HISTORY_TIME" IS '寫入時間';
  27. --------------------------------------------------------
  28. -- DDL for Index HIS_LOC_STATUS_PK
  29. --------------------------------------------------------
  30. CREATE UNIQUE INDEX "MIRLE"."HIS_LOC_STATUS_PK" ON "MIRLE"."HIS_LOC_STATUS" ("HISTORY_TIME")
  31. PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  32. TABLESPACE "SYSTEM" ;
  33. --------------------------------------------------------
  34. -- Constraints for Table HIS_LOC_STATUS
  35. --------------------------------------------------------
  36. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("HISTORY_TIME" NOT NULL ENABLE);
  37. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("STORAGE_ID" NOT NULL ENABLE);
  38. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("LOC_ID" NOT NULL ENABLE);
  39. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("LOC_STATUS" NOT NULL ENABLE);
  40. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("CARRIER_ID" NOT NULL ENABLE);
  41. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("PROGRAM_NAME" NOT NULL ENABLE);
  42. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("UPDATE_USER" NOT NULL ENABLE);
  43. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" MODIFY ("UPDATE_TIME" NOT NULL ENABLE);
  44. ALTER TABLE "MIRLE"."HIS_LOC_STATUS" ADD CONSTRAINT "HIS_LOC_STATUS_PK" PRIMARY KEY ("HISTORY_TIME")
  45. USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
  46. TABLESPACE "SYSTEM" ENABLE;