DROP TABLE IF EXISTS scores;
CREATE TABLE scores (
id INT PRIMARY KEY AUTO_INCREMENT NOT NULL,
name CHAR(30) NOT NULL,
score INT NOT NULL,
KEY property (score, name)
) DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
INSERT INTO scores (name, score) VALUES("Taro Yamada", 29);
INSERT INTO scores (name, score) VALUES("Taro Yamada", -12);
INSERT INTO scores (name, score) VALUES("Jiro Yamada", 29);
INSERT INTO scores (name, score) VALUES("Taro Yamada", 10);
SELECT * FROM scores WHERE score = 29;
id	name	score
3	Jiro Yamada	29
1	Taro Yamada	29
UPDATE scores SET name = "Saburo YAMADA" WHERE id = 3;
SELECT * FROM scores WHERE score = 29;
id	name	score
3	Saburo YAMADA	29
1	Taro Yamada	29
DROP TABLE scores;
