The MySQL database includes an InnoDB table with data stored in strings in the val column: CREATE TABLE `t1` (`id` int unsignet NOT NULL AUTO_INCREMENT,
`val` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`)
) ENGINE=InnoDB;
Some example values are:
(含图)
A typical query using the val column for filltering is:
mysql > SELECT * FROM t1 WHERE val LIKE '%/def/%';
Which three changes will allow the use of an index to perform this kind of filtering?