一个简单的例子:
q1包含两行空值
CONG@ prod> select * from q1 ;
ID
----------
1
3 rows selected.
q2也是
CONG@ prod> select * from q2 ;
ID
----------
1
3 rows selected.
两者的JOIN空值全被忽略。
CONG@ prod> select * from q1 join q2 on ( q1.id = q2.id ) ;
ID ID
---------- ----------
1 1
1 row selected.