Slide 117
Slide 117 text
疑似セカンダリーインデックス
mysql> DELETE FROM country
-> WHERE code IN ('ARG','BOL','BRA','CHL','COL','ECU','FLK','GUF','GUY','PER','PRY','
SUR','URY','VEN');
mysql> DELETE FROM country WHERE code IN ('ARG','BOL','BRA','CHL','COL','ECU','FLK','GUF'
,'GUY','PER','PRY','SUR','URY','VEN');
Query OK, 14 rows affected (0.00 sec)
mysql> SELECT object_name, index_name, lock_type, lock_mode, COUNT(*) FROM performance_sc
hema.data_locks GROUP BY 1, 2, 3, 4;
+-------------+------------+-----------+---------------+----------+
| object_name | index_name | lock_type | lock_mode | COUNT(*) |
+-------------+------------+-----------+---------------+----------+
| country | NULL | TABLE | IX | 1 |
| country | PRIMARY | RECORD | X,REC_NOT_GAP | 14 |
+-------------+------------+-----------+---------------+----------+
116/123