我正在尝试完成一个项目但是当我尝试创建一个表时,我一直收到“缺少关键字”错误:
CREATE TABLE SKILLS (
SkillsID CHAR(4) NOT NULL,
ConsultantID CHAR(4) NOT NULL,
ExpertiseID CHAR(4) NOT NULL,
MonthsExperience INT NOT NULL,
CONSTRAINT SkillsPK PRIMARY KEY (SkillsID),
CONSTRAINT SkillsConsultFK FOREIGN KEY(ConsultantID)
REFERENCES CONSULTANTS(ConsultantID)
ON UPDATE NO ACTION
ON DELETE CASCADE,
CONSTRAINT SkillsExpertiseFK FOREIGN KEY(ExpertiseID)
REFERENCES EXPERTISE(ExpertiseID)
ON UPDATE NO ACTION
ON DELETE CASCADE
)
请!非常感谢所有帮助
答案 0 :(得分:3)
删除ON UPDATE NO ACTION
。由于Oracle中没有ON UPDATE CASCADE
,因此无需指定NO ACTION
。