Obsidian/Recognition/Work Related/1.업무메모/2022.06/2022-06-28.md

25 lines
666 B
Markdown
Raw Normal View History

2023-08-14 16:19:25 +00:00
DROP TABLE DMFHF.TB_USM_INOUT CASCADE CONSTRAINTS;
CREATE TABLE DMFHF.TB_USM_INOUT
(
SHIP_NO VARCHAR2(50 BYTE) NOT NULL,
SLOT_NO NUMBER(4),
CALL_SIGN VARCHAR2(50 BYTE) NOT NULL,
SHIP_NAME VARCHAR2(100 BYTE),
TKOFF_DE VARCHAR2(8 BYTE) NOT NULL,
TKOFF_TIME VARCHAR2(4 BYTE) NOT NULL,
ETRYPT_DE VARCHAR2(8 BYTE),
ETRYPT_TIME VARCHAR2(4 BYTE)
);
ALTER TABLE DMFHF.TB_USM_INOUT ADD (
CONSTRAINT PK_TB_USM_INOUT
PRIMARY KEY
(SHIP_NO, TKOFF_DE, TKOFF_TIME, CALL_SIGN));
CREATE INDEX DMFHF.IDX_TB_USM_INOUT_TKDE ON DMFHF.TB_USM_INOUT
(TKOFF_DE, TKOFF_TIME);