1
CREATE TABLE MEMBER ( MemberID VARCHAR (255) NOT NULL, Email VARCHAR (255) NOT NULL, Gender CHAR NOT NULL, Birthday VARCHAR (20) Education VARCHAR (20), Name VARCHAR (20), PRIMARY KEY (MemberID), FOREING KEY (MemberID) REFERENCES LanguageSEARCH(MemberID), FOREING KEY (MemberID) REFERENCES FAVORITE(MemberID), FOREING KEY (MemberID) REFERENCES HISTORY(MemberID), FOREING KEY (MemberID) REFERENCES TRACK(MemberID), FOREING KEY (MemberID) REFERENCES WordSEARCH(MemberID), FOREING KEY (MemberID) REFERENCES ORDER(BookMemberID) );
Error:1064 (42000): use near'VARCHAR (20), Name VARCHAR (20), PRIMARYKEY (MemberID), FOREING KEY' at line 6
我有這個問題我解決不了。 (可以使用MariaDB xampp)1064錯誤無法解決
「生日」欄後面缺少逗號。 –