27,579
社区成员
发帖
与我相关
我的任务
分享
select t1.name , t1.adrress,t1.phone,t1.mobile,t2.appdate,t3.visitDate
from company t1 , Phone t2,Visit t3
where t1.Id = t2.CompanyId and t1.id = t3.CompanyId
select t1.name , t1.adrress,t1.phone,t1.mobile,t2.appdate,t3.visitDate from company t1
left join Phone t2 on t1.Id = t2.CompanyId
left join Visit t3 on t1.id = t3.CompanyId
select t1.name , t1.adrress,t1.phone,t1.mobile,
appdate = (select appdate from Phone t2 where t2.CompanyId = t1.Id),
visitDate = (select visitDate from Visit t3 where t3.CompanyId = t1.Id)
from company t1
select t1.name , t1.adrress,t1.phone,t1.mobile,t2.appdate,t3.visitDate
from company t1 , Phone t2,Visit t3
where t1.Id = t2.CompanyId and t1.id = t3.CompanyId
select
a.name,adrress,phone,moblie,b.appdate,c.visitdate
from
company a ,Phone b mvisit c
where
a.id=b.companyid
and
a.id=c.companyid
select a.name,adrress,phone,moblie,b.appdate,c.visitdate
from company a inner join Phone b on a.id=b.companyid
inner join visit c on a.id=c.companyid