Please, why I got this error(SQL Error: ORA-00907: missing right parenthesis ) whats wrong in my code?

CREATE TABLE DomeniuAB(ID_DOMAB NUMBER(10) constraint ID_DOMAB_PK PRIMARY KEY ,
DENUMIRE VARCHAR2(20) NOT NULL,
DETALII VARCHAR2(20) NOT NULL,
ISBNAB_CarteAB VARCHAR2(15), CONSTRAINT ISBNAB_FK FOREIGN KEY (ISBNAB_CarteAB) REFERENCES CarteAB(ISBNAB),
CNPAB_AutorAB NUMBER(10), CONSTRAINT CNPAB_FK FOREING KEY (CNPAB_AutorAB) REFERENCES AutorAB(CNPAB));

Are you missing a comma after ID_DOMAB NUMBER(10) ?

CREATE TABLE DomeniuAB(ID_DOMAB NUMBER(10), constraint ID_DOMAB_PK PRIMARY KEY ,
DENUMIRE VARCHAR2(20) NOT NULL,
DETALII VARCHAR2(20) NOT NULL,
ISBNAB_CarteAB VARCHAR2(15), CONSTRAINT ISBNAB_FK FOREIGN KEY (ISBNAB_CarteAB) REFERENCES CarteAB(ISBNAB),
CNPAB_AutorAB NUMBER(10), CONSTRAINT CNPAB_FK FOREING KEY (CNPAB_AutorAB) REFERENCES AutorAB(CNPAB));
Now i have this error ORA-00906: missing left parenthesis, i really don't understand what's wrong :))

FOREING spelling?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.