Created 9 fields in the table; only 7 are visible; foreign keys are not displayed. Created a table like this:
CREATE TABLE List_Worker( code Number(10) NOT NULL, fam varchar2(55) NOT NULL, im varchar2(55) NOT NULL, otc varchar2(55) NOT NULL, birthDay TIMESTAMP DEFAULT SYSTIMESTAMP, workDay TIMESTAMP DEFAULT SYSTIMESTAMP, CONSTRAINT code_pk2 PRIMARY KEY (code), CONSTRAINT fk_codeDep FOREIGN KEY (code) REFERENCES List_Department(code), CONSTRAINT fk_codePos FOREIGN KEY (code) REFERENCES List_Position(code), firing char(1) CHECK (firing IN ('1', '2'))
);
Here is the table:
How to make foreign keys appear?
dept_code number(10),
and a separate lineCONSTRAINT fk_codeDep FOREIGN KEY (dept_code) REFERENCES List_Department(code),
- Mike