oracle中where和on的區別

1.區別

在內鏈接(inner join)中使用沒有區別。
可是在外鏈接(left join和right join)中使用的話,on條件使用後,仍是會返回主表的記錄。
where條件是對生成的結果集進行過濾。測試

2.測試

1)課程表course

2)老師表teacher

3)內鏈接

4)內鏈接on

5)內鏈接where

6)外鏈接

7)外鏈接on

8)外鏈接where

相關文章
相關標籤/搜索