You want to list all rows from the mysql.help_keyword table,
in which the name contains ‘TREE’ or ‘TYPE’.
The obvious choice is:
SELECT * FROM mysql.help_keyword WHERE name like '%TREE%' or name like '%TYPE%';
+-----------------+-------+
| help_keyword_id | name |
+-----------------+-------+
| 87 | RTREE |
| 107 | TYPE |
| 441 | BTREE |
| 445 | TYPES |
+-----------------+-------+
4 rows in set (0.01 sec)
What other alternatives can you think of?
[Just for fun]
SQL is very powerful and there are plenty of ways to solve problems.
The example below is only one possibility. It uses a join instead of the “or … like”.
Instead of the subquery you could use a real table.
Also there might be inventive ways of using LOCATE, REGEXP/RLIKE…