更新时出现 ORA - 00907 错误
Getting an ORA - 00907 error on the following at ON UPDATE
在实施我的 oracle 数据库时,我在更新时的第 8 行收到一个 ORA-00907 错误。它抱怨右括号,但我在任何地方都看不到这个错误。我的问题是什么?
CREATE TABLE Result (
Rid number,
Hid number,
Jid number,
Jweight number(5),
Place number(3),
CONSTRAINT Result_PK PRIMARY KEY(Rid, Hid, Jid),
CONSTRAINT ResultRACE_FK FOREIGN KEY(Rid) REFERENCES Race(Rid) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT ResultHORSE_FK FOREIGN KEY(Hid) REFERENCES Horse(Hid) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT ResultJOCKEY_FK FOREIGN KEY(Jid) REFERENCES Jockey(Jid) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT Jweight_Check CHECK(Jweight > 0 AND Jweight < 116))
Oracle RDBMS 不支持 ON UPDATE CASCADE
。
在实施我的 oracle 数据库时,我在更新时的第 8 行收到一个 ORA-00907 错误。它抱怨右括号,但我在任何地方都看不到这个错误。我的问题是什么?
CREATE TABLE Result (
Rid number,
Hid number,
Jid number,
Jweight number(5),
Place number(3),
CONSTRAINT Result_PK PRIMARY KEY(Rid, Hid, Jid),
CONSTRAINT ResultRACE_FK FOREIGN KEY(Rid) REFERENCES Race(Rid) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT ResultHORSE_FK FOREIGN KEY(Hid) REFERENCES Horse(Hid) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT ResultJOCKEY_FK FOREIGN KEY(Jid) REFERENCES Jockey(Jid) ON DELETE CASCADE ON UPDATE CASCADE,
CONSTRAINT Jweight_Check CHECK(Jweight > 0 AND Jweight < 116))
Oracle RDBMS 不支持 ON UPDATE CASCADE
。