DB

[DB] Natural join

Lord DEVader 2023. 9. 27. 16:40

정의

    : 두 테이블에 공통 칼럼이 있으면 별다른 join 조건 없이 공통 칼럼처럼 묵시적으로 join

 

예)

 

location id칼럼이 공통으로 존재.

 

 

select * from departments natural join locations;