SELECT T1.real_name, T2.score FROM A表 AS T1 INNER JOIN B表 AS T2 ON T1.login_name = T2.teacher_login_name WHERE T1.unit_id = 001
热心网友时间:2022-04-10 15:45
select a.real_name ,b.score from a left join b on b.teacher_login_name=a.login_name '左连接 where a.login_name=0 or a.login_name is not null '这步去掉完记录,可不用 and a.unit_id=001 ’查询条件