------解决方案--------------------
select b.name,c.name,d.name,... from a join b on a.id1=b.id join b as c on a.id2=c.id join b as d on a.id3=d.id ......
------解决方案--------------------
SQL code
select * from a
join
(select distinct 登录ID,用户姓名 from tb)b
on a.登录ID=b.登录ID
------解决方案--------------------