34,590
社区成员
发帖
与我相关
我的任务
分享
select [user].userName, shop.shopname, role.rolename from [user]
join shop on [user].shopid=shop.shopid
join userrole on [user].userid=userrole.userid
join role on userrole.roleid=role.roleid
--join another table
where [user].userid='qq'
select a.*,b.*,c.*,d.* from a
left join b on a.id = b.id
left join c on a.id = c.id
left join d on a.id = d.id
and a.userid='qq'