你能幫我嗎?我有同樣的問題,我不能與此表isporuke
我有一個907的問題解決它ORA-00907問題:缺少右括號
create table minimarketi (id number(6) constraint min_id_pk primary key
, ime varchar2(40) not null
, adresa varchar2(100)
, grad varchar2(30)
);
create table zahtjevi (id_minimarketa number(6)
, rbr_zahtjeva number(6)
, datum_izdavanja date
, constraint zaht_pk primary key(id_minimarketa, rbr_zahtjeva)
, constraint zaht_min_fk foreign key(id_minimarketa) references minimarketi(id)
);
create table artikli (sifra number(6)
, constraint art_sifra_pk primary key(sifra)
, naziv varchar2(100) not null
);
create table stavke_zahtjeva (id_minimarketa number(6)
, rbr_zahtjeva number(6)
, sifra_artikla number(6)
, kolicina number(6) not null
, constraint stavke_zahtjeva_pkl
primary key(id_minimarketa, rbr_zahtjeva, sifra_artikla)
, constraint stav_zaht_idrbr_fk
foreign key(id_minimarketa, rbr_zahtjeva)
references zahtjevi(id_minimarketa, rbr_zahtjeva)
, constraint stav_art_fk
foreign key(sifra_artikla)
references artikli(sifra)
);
create table isporuke (rbr_isporuke number(6)
, id_minimarketa number(6)
, rbr_zahtjeva number(6)
, datum izdavanja date
, constraint isporuke_pk
primary key(rbr_isporuke, id_minimarketa, rbr_zahtjeva)
, constraint ispo_zaht_fk
foreign key(id_minimarketa, rbr_zahtjeva)
references zahtjevi(id_minimarketa, rbr_zahtjeva)
);
?
格式化您的代碼在幫助解決語法錯誤方面有很長的路要走。 –