0
所以,我有表,他们都有一个“entity_id”,但其中一个有一个额外的列名为“价格”,另一个表有两个额外的称为“邮政编码”和“城市”。SQL DB与两个不同的表结合
Like this: The other:
_________________ ___________________________
|entity_id|price| |entity_id|postcode|city |
|1 |23$ | |1 |12345 |some1 |
|2 |10$ | |2 |54321 |some2 |
我希望它是什么:
__________________________________
|entity_id|price|postcode|city |
|1 |23$ |12345 |some1 |
|2 |10$ |54321 |some2 |
但我无法找到任何SQL代码来做到这一点?