我正在尝试使用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, ... );
答案 0 :(得分:3)
您必须逐行插入值,其中每行用括号括起来。由于您的值是字符串,因此它们也必须用引号引起来:
INSERT INTO players(name)
VALUES
('Seranul'),
('Contherious'),
('Unicorns'),
...
;