on과 where 차이
ON : join하기 전 필터링
WHERE : join한 후 필터링
각 join 특징
팁
inner join은 on이 아닌 where을 사용하자 (on과 where의 결과는 같으나 where이 더 친숙하기 때문)
'Spring boot' 카테고리의 다른 글
[spring boot] 영속성 전이 (cascade)와 orphanRemoval 차이 (0) | 2022.01.20 |
---|---|
[spring boot] 실전! (0) | 2022.01.10 |
[spring boot] OSIV와 영속성 컨텍스트 (0) | 2021.12.08 |
[spring boot] API 성능 최적화 (+ DTO 장점) (0) | 2021.12.03 |
[spring boot] test시 (H2 DB의) 메모리모드 사용 (0) | 2021.11.14 |