SQL连接,Oracle关联加号(+)等相关知识

时间:2014-10-21 16:50:52   收藏:0   阅读:188

用(+)的语法简洁,容易读懂,但只是ORACLE支持,LEFT JOIN是通用的,其它没有差别

用left join 的

SQL code
select a.id,b.id
   form a left jion b on a.id=b.id



用(+)的

SQL code
select a.id,b.id
   form a ,b 
   where  a.id=b.id(+)



评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!