我有一个像这样的名为 my_table 的表
+------------+--------+--------+
| product | type_1 | type_2 |
+------------+--------+--------+
| Banana | A1 | B1 |
| Banana | B1 | B2 |
| Watermelon | A | B3 |
| Orange | B | B4 |
+------------+--------+--------+
所以我想查询产品香蕉,然后它返回type_2,另一个产品返回type_1
所以预期的结果就是这样
+------------+------+
| product | type |
+------------+------+
| Banana | B1 |
| Banana | B2 |
| Watermelon | A |
| Orange | B |
+------------+------+