Home:ALL Converter>Keep getting a missing right parenthesis (ORA-00907) error in Oracle

Keep getting a missing right parenthesis (ORA-00907) error in Oracle

Ask Time:2022-06-18T13:45:27         Author:JAYMO

Json Formatter

Just recently started learning SQL and got assigned some homework. I have to make a few tables but I keep getting an ORA-00907 missing right parenthesis error but I see no syntax issues.

This is my code for one of the tables I have to make:

CREATE TABLE DRIVER 
(
    DRIVER# INT NOT NULL PRIMARY KEY,
    DNAME VARCHAR(255), 
    SALARY INT,
    CERT_DATE DATE,
    DEPOT# INT FOREIGN KEY REFERENCES DEPOT(DEPOT#)
);

Author:JAYMO,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/72666965/keep-getting-a-missing-right-parenthesis-ora-00907-error-in-oracle
yy