where b.user_id = c.user_id
select a.user_name,b.timestr,b.kills from user1 as a left join user_kills as b on a.id = b.user_id
where b.kills = (select max(c.kills) from user_kills as c where b.user_id = c.user_id);
为什么 b,c 表 user_id 一样的,加了和不加结果会不一样
select a.user_name,b.timestr,b.kills from user1 as a left join user_kills as b on a.id = b.user_id
where b.kills = (select max(c.kills) from user_kills as c where b.user_id = c.user_id);
为什么 b,c 表 user_id 一样的,加了和不加结果会不一样
2018-07-06
举报