SQL INNER JOIN syntax

后端 未结 7 2198
夕颜
夕颜 2020-12-01 05:16

the two bits of SQL below get the same result

SELECT c.name, o.product  
FROM customer c, order o  
WHERE c.id = o.cust_id  
AND o.value = 150  

SELECT c.na         


        
7条回答
  •  余生分开走
    2020-12-01 06:13

    To answer part of your question, I think early bugs in the JOIN ... ON syntax in Oracle discouraged Oracle users away from that syntax. I don't think there are any particular problems now.

    They are equivalent and should be parsed into the same internal representation for optimization.

提交回复
热议问题