Where operators can be used
Comparison operators and functions can appear as conditions, such as part of the WHERE clause or join ON conditions.SELECT list or other locations where expressions can appear.
SELECT t, t LIKE 'r%', t != 'red' FROM s WHERE t = 'red';
+------+-------------+------------+
| t | t LIKE 'r%' | t != 'red' |
+------+-------------+------------+
| red | 1 | 0 |
+------+-------------+------------+Last modified: April 24, 2021