CREATE TABLE Edit
(
editID numeric(5) PRIMARY KEY ,
CONSTRAINT edit_fk FOREIGN KEY (adminID)
REFERENCES Admin (adminID)
ON DELETE CASCADE
ON UPDATE CASCADE,
CONSTRAINT edit_fk FOREIGN KEY (flgihtID)
REFERENCES Flight (flightID)
ON DELETE CASCADE
ON UPDATE CASCADE
);
CREATE TABLE Reservation
(
reservationID numeric(5) PRIMARY KEY,
CONSTRAINT reservation_fk FOREIGN KEY (flightID)
REFERENCES Flight (flightID)
ON DELETE CASCADE
ON UPDATE CASCADE
);
答案 0 :(得分:0)
Oracle中没有ON UPDATE CASCADE
这样的东西。其他RDMBS中可能有,但Oracle中没有。删除该条款。