【发布时间】:2016-08-04 11:56:20
【问题描述】:
我需要在 postgresql 中连接三个表中的记录。
表结构:
用户
Residence_id | Name | Mobile
1234 | A | 9876
23456 | B | 9786
帐户
Residence_id | Balance
1234 | 1000
4545 | 567
地址
Residence_id | City | Country
1234 | Mumbai | India
0124 | London | UK
预期结果:
Residence_id | Name | Mobile | Balance | City | Country
1234 | A | 9876 | 1000 | Mumbai | India
23456 | B | 9786 | | |
4545 | | | 567 | |
0124 | | | | London | UK
提前致谢。
【问题讨论】:
标签: sql postgresql join