MySQL fetching a key value pair which are in two different columns
问题 Table1 : Has 3 columns say id, key & value. +----+-----+-------+ | ID | KEY | VALUE | +----+-----+-------+ | 1 | 1 | 1 | | 2 | 1 | 2 | | 3 | 2 | 1 | | 4 | 2 | 2 | | 5 | 3 | 1 | | 6 | 3 | 2 | | 7 | 4 | 1 | | 8 | 4 | 2 | | 9 | 5 | 1 | | 10 | 5 | 2 | +----+-----+-------+ This table key and value both can be repeated but the combination of both is unique. If I want to query for multiple rows based on the key value pair and NOT on id. How can I do that ? NOTE : I know I can do this SELECT * from