如果要防止查询出现重复字段union应该加到sql语句什么地方?求各位大神指点 下面是sql语句↓
selectc.*,s.*,h.*fromclasscleftjoinstudentsonc.class_id=s.class_idleftjoinschoolhonh....
select c.*,s.*,h.* from class c left join student s on c.class_id=s.class_id left join school h on h.school_id=c.school_id where school_name="金
沙校区" order by score desc limit 10; 展开
沙校区" order by score desc limit 10; 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询