首页 > 数据库技术 > 详细

mysql左联查询、右联查询和内联查询

时间:2018-01-09 19:29:37      阅读:381      评论:0      收藏:0      [点我收藏+]

左联查询

select * from a left join b on a.id=b.id;

右联查询

select * from a right join b on a.id=b.id;

内联查询

select a.name,b.class from a, b where c.id=b.id;

order by

select *from a order by desc#desc;降序排列,asc升序排列

group by

select count(scores)from group by calss;

having

select count(scores)from a group by class having count(scores>=70) order by desc;

mysql左联查询、右联查询和内联查询

原文:https://www.cnblogs.com/pingpingpingping/p/8252855.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!