想要从多个表中代表同一用户检索多个行

时间:2017-12-21 19:53:45

标签: mysql join

我有四张桌子

ApplicantBasic
A_id    Username    Email                Password
1       Williams   williams@gmail.com    sdfds12231 

ApplicantProjects
A_id   ProjectTitle  Duration     Year
 1       ABC         3 months    2015
 1       BCD         6 months    2017  

Applicant ProfessionalInfo
A_id   Organization  Designation   Duration
 1       10Pearls     Internee      5 months
 1         TPS         SQA          7 months  

ApplicantCertification
A_id   CertificateName    Url       Year
 1       .Net Diploma   abc.com      2011
 1        CCNA           Cisco.com   2014

我想从ApplicantBasic表中检索用户名,电子邮件和密码,并从这三个表的其余部分中检索所有信息

A_id  : 1
Username : Williams   
Email : williams@gmail.com
Password :sdfds12231 
ProjectTitle : ABC 
Duration : 3 months
Year 2015
ProjectTitle : BCD
Duration : 6 months
Organization : 10Pearls
Designation  : Internee
Duration : 5 months
Organiation : TPS 
Designation : SQA
Duration : 7 months
CertificateName : .Net Diploma
Url : abc.com 
Year  : 2011
CertificateName : CCNA
Url : Cisco.com
Year : 2014

如何使用mysql检索它?

0 个答案:

没有答案