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.

52 lines
2.6 KiB

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