列计数与值计数不匹配,即使确实如此

时间:2019-04-29 02:51:19

标签: mysql

我正在尝试使用mysql -u username -p dbname

CREATE TABLE players(
player_id INT UNSIGNED auto_increment PRIMARY KEY,
name VARCHAR(100)
)engine=InnoDB CHARSET utf8mb4 COLLATE=utf8mb4_unicode_ci;

INSERT INTO players(name)
VALUES
(Seranul, Contherious, Unicorns, ... );

1 个答案:

答案 0 :(得分:3)

您必须逐行插入值,其中每行用括号括起来。由于您的值是字符串,因此它们也必须用引号引起来:

INSERT INTO players(name)
VALUES
('Seranul'),
('Contherious'),
('Unicorns'),
...
;