如何正确显示下图信息
select distinct B.学号,B.姓名,A.课程号 from A,B where A.学号=B.学号
group by 相同的字段
distinct 去重复
select distinct (你要搜索的信息) from (表名) where (条件),或者是 select (你要搜索的信息) from (表名) where (条件) group by(关键字)
select a.* ,b.另外一个字段 from a left join b on a.同字段=b.同字段
distinct关键字去重
distinct去重
left join on