我正在尝试在 MYSQL 上插入以下信息,但不断收到上述错误?即使我只是尝试插入其中一个值,它也会不断出错。
CREATE TABLE depositor
(depositor_name char(30),
depositor_number varchar(20),
PRIMARY KEY (depositor_number),
FOREIGN KEY (depositor_name) REFERENCES depositor(depositor_name));
INSERT INTO depositor VALUES("Johnson", "A-101");
INSERT INTO depositor VALUES("Smith", "A-215");
INSERT INTO depositor VALUES("Hayes", "A-102");
INSERT INTO depositor VALUES("Hayes", "A-101");
INSERT INTO depositor VALUES("Turner", "A-305");
INSERT INTO depositor VALUES("Johnson", "A-201");
INSERT INTO depositor VALUES("Jones", "A-217");
INSERT INTO depositor VALUES("Lindsay", "A-222");
INSERT INTO depositor VALUES("Majeris", "A-333");
INSERT INTO depositor VALUES("Smith", "A-444");
SELECT * FROM DEPOSITOR