强连接就是
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 也选出来.
在数据库设计时,表和表之间的关联尽量采用弱关联以便于对表字段和表结构的调整和重构。
强连接就是
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 也选出来.
在数据库设计时,表和表之间的关联尽量采用弱关联以便于对表字段和表结构的调整和重构。
转载于:https://www.cnblogs.com/daocaowu/p/3319563.html