【发布时间】:2022-01-21 00:20:51
【问题描述】:
我需要从不同表中具有相同名称的 2 列中获取每个值。所有这些都具有来自另一列的匹配条件
//TABLE1
city | code |
here | 123 |
there | 567 |
another| 498 |
//TABLE2
city | code |
here | 813 |
there | 379 |
another| 111 |
“那里”城市的预期结果
| 567 |
| 379 |
我尝试了 JOIN 和 UNION 的许多可能性,但我能找到正确的方法
【问题讨论】: