Oracle SQL Table说在Create语句上缺少右括号是为什么?

时间:2018-11-22 19:26:57

标签: oracle ddl create-table

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 
);

1 个答案:

答案 0 :(得分:0)

Oracle中没有ON UPDATE CASCADE这样的东西。其他RDMBS中可能有,但Oracle中没有。删除该条款。