码迷,mamicode.com
首页 > 数据库 > 详细

SQL JOIN

时间:2014-09-29 12:11:20      阅读:355      评论:0      收藏:0      [点我收藏+]

标签:blog   http   sp   div   2014   on   c   log   r   

今天在csdn上看到一篇报道,关于如何甄别面试者的一些技巧,发现了几个知识点,总结了一下

bubuko.com,布布扣

 

(1)select *from talbeA as  a left join tableB as b  on a.key=b.key

(2)select *from talbeA as  a left join tableB as b  on a.key=b.key where b.key is null
(3) select *from talbeA as  a inner join tableB as b  on a.key=b.key
(4)select *from talbeA as  a right join tableB as b  on a.key=b.key 
(5)select *from talbeA as  a right join tableB as b  on a.key=b.key   where a.key is null
(6)select *from talbeA as  a outer join tableB as b  on a.key=b.key 
(7)select *from talbeA as  a outer join tableB as b  on a.key=b.key where a.key is null and b.key is null

  

 

SQL JOIN

标签:blog   http   sp   div   2014   on   c   log   r   

原文地址:http://www.cnblogs.com/alphafly/p/3999676.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!