I have a MySql table, which I want to query for rows in which pairs of columns are in a specific set. For example, say my table looks like this:
<
A rough but practical way is to use string concatenation:
SELECT * FROM MyTable WHERE CONCAT(f1, '_', f2) IN ('a_30', 'b_20')