强连接与弱连接

强连接就是
select a.* from a, b where a.id=b.id
一定要a,b表中都有的id才选出来,
弱连接就是:
select a.* from a, b where a.id=b.id(+)
就是b中没有,a 也选出来.

 

在数据库设计时,表和表之间的关联尽量采用弱关联以便于对表字段和表结构的调整和重构。

posted @ 2013-09-13 16:31  盗草人  阅读(1640)  评论(0编辑  收藏  举报