我无法在 oracle 中创建此表并不断收到错误 ORA-00942:表或视图不存在任何帮助,非常感谢!
CREATE TABLE Occupancy
(
PatientNo CHAR(6),
WardNo CHAR(6),
BedNo NUMBER(2),
StartOfOccupancy DATE,
EndOfOccupancy DATE,
CostsIncurred NUMBER(6,2),
PRIMARY KEY (Patientno,WardNo,BedNo,StartOfOccupancy),
FOREIGN KEY (Patientno) REFERENCES Patient (PatientNo),
FOREIGN KEY (WardNo,BedNo) REFERENCES Bed (WardNo,BedNo)
)