25 lines
666 B
Markdown
25 lines
666 B
Markdown
|
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);
|
||
|
|
||
|
|