34,590
社区成员
发帖
与我相关
我的任务
分享
select a.*,b.*,c.fl as fl2
from pu_zhje a
left join pu_fl b on a.dlbm=b.userid
left join s_faruser c on b.userid=c.userid
where a.dlbm=15
--用LEFT JOIN
select a.*,b.*,c.fl as fl2
from pu_zhje as a LEFT JOIN pu_fl as b ON a.dlbm=b.userid
LEFT JOIN s_faruser as c ON b.userid=c.userid
where a.dlbm=15
--用LEFT JOIN
select a.*,b.*,c.fl as fl2
from pu_zhje as a LEFT JOIN pu_fl as b ON a.dlbm=b.userid
LEFT JOIN s_faruser as c ON b.userid=c.userid
where a.dlbm=15
--用LEFT JOIN
select a.*,b.*,c.fl as fl2
from pu_zhje as a LEFT JOIN pu_fl as b LEFT JOIN s_faruser as c
where a.dlbm=15 and a.dlbm=b.userid and b.userid=c.userid