从多个表中的电话号码获取姓名?
我有这个表:
inbox table
SenderNumber Message
contact table
Name Number
district table
id SpvName Number
sub_district table
id district_id SpvName Number
village table
id sub_district_id SpvName Number
我想从收件箱的 SenderNumber 列中获取联系人、区、分区或村庄的姓名或 spvname。我该如何实现这一目标?结果可能是这样的,
SenderNumber | Name | Type | Message
-------------+------+--------------+------------
123 | john | contact | bla bla
234 | mary | district spv | bla bla bla
提前致谢,并对我的英语不好表示歉意。
i have this tables:
inbox table
SenderNumber Message
contact table
Name Number
district table
id SpvName Number
sub_district table
id district_id SpvName Number
village table
id sub_district_id SpvName Number
i want to get name or spvname from contact, district, sub_district or village, based from the SenderNumber column from inbox. How do i achieve this? the result maybe like this
SenderNumber | Name | Type | Message
-------------+------+--------------+------------
123 | john | contact | bla bla
234 | mary | district spv | bla bla bla
thanks in advance, and sorry for my bad english.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我相信这样的事情会起作用......
Something like this would work I believe...