Hi
Please why I got this error(SQL Error: ORA-00907: missing right parenthesis) whats wrong in my code?
CREATE TABLE artphoto(
photonr NUMBER(10),
artnr NUMBER(10) NOT NULL,
filtyp VARCHAR2(5) NOT NULL,
path VARCHAR2(100) NOT NULL,
CONSTRAINT artphoto_photonr_pk PRIMARY KEY(photonr),
CONSTRAINT artphoto_artnr_fk FOREIGEN KEY(artnr),
REFERENCES art(artnr),
CONSTRAINT artphoto_filtyp_ck CHECK(filtyp in ('gif','jpg'))
);
Error starting at line 1 in command:
CREATE TABLE artphoto(
photonr NUMBER(10),
artnr NUMBER(10) NOT NULL,
filtyp VARCHAR2(3) NOT NULL,
path VARCHAR2(200) NOT NULL,
CONSTRAINT artphoto_photonr_pk PRIMARY KEY(photonr),
CONSTRAINT artphoto_artnr_fk FOREIGEN KEY(artnr),
REFERENCES art(artnr),
CONSTRAINT artphoto_filtyp_ck CHECK(filtyp in ('gif','jpg'))
)
Error at Command Line:8 Column:44
Error report:
SQL Error: ORA-00907: missing right parenthesis
00907. 00000 - "missing right parenthesis"