码迷,mamicode.com
首页 > 其他好文 > 详细

left outer join

时间:2014-08-27 16:23:37      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:http   sp   on   ef   c   .net   table   images   rom   

bubuko.com,布布扣  table   A:  
Field_K,   Field_A  
bubuko.com,布布扣  1                       a  
bubuko.com,布布扣  3                       b  
bubuko.com,布布扣  4                       c  
bubuko.com,布布扣   
bubuko.com,布布扣  table   B:  
bubuko.com,布布扣  Field_K,   Field_B  
bubuko.com,布布扣  1                       x  
bubuko.com,布布扣  2                       y  
bubuko.com,布布扣  4                       z  
bubuko.com,布布扣   
bubuko.com,布布扣  select   a.Field_K,   a.Field_A,   b.Field_K,   b.Field_B  
bubuko.com,布布扣  from   a   left  outer join   b   on   a.Field_K=b.Field_K  
bubuko.com,布布扣   
bubuko.com,布布扣  Field_K         Field_A         Field_K         Field_B          
bubuko.com,布布扣  ----------   ----------   ----------   ----------    
bubuko.com,布布扣  1                     a                     1                     x                    
bubuko.com,布布扣  3                     b                     NULL               NULL  
bubuko.com,布布扣  4                     c                     4                     z                    
bubuko.com,布布扣   

left outer join

标签:http   sp   on   ef   c   .net   table   images   rom   

原文地址:http://www.cnblogs.com/charlie-badegg/p/3939627.html

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