7
我创建了2代表作为左连接和左外连接有什么区别?
CREATE TABLE table1(customerName VARCHAR(20),custid NUMBER ,order_id NUMBER ,price NUMBER);
CREATE TABLE table2(id NUMBER ,salary NUMBER);
现在,我试图用查询
SELECT t1.customername,t1.custid,t2.salary FROM table1 t1 left join table2 t2 ON t1.custid = t2.id;
SELECT t1.customername,t1.custid,t2.salary FROM table1 t1 left outer join table2 t2 ON t1.custid = t2.id;
但我得到的结果相同。他们在工作中在内部有任何区别吗?或者都是一样的!?
无,没有什么区别'LEFT JOIN'只是'LEFT OUTER JOIN'的缩写形式。 – jarlh
好的,谢谢:) –