嘿伙计们,我对整个 mysql 世界有点陌生,我目前遇到的问题是我无法弄清楚为什么这不起作用,这可能与 2 个主键有关吗?还是参考文献?提前致谢
CREATE TABLE IsSeenBy
( PatientCode int (11) NOT NULL,
DoctorCode int (11) NOT NULL,
Date VARCHAR (10) NOT NULL,
Time VARCHAR (5) NOT NULL,
PRIMARY KEY (PatientCode),
PRIMARY KEY (DoctorCode),
PatientCode REFERENCES (Patient),
DoctorCode REFERENCES (Doctor)
;