sql如何查询将一张表两条相同信息显示为一条
答
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