반응형
250x250
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 도커
- docker
- Kafka
- codedeploy
- Spring Error
- SQL
- kubeflow
- Flux
- PostgreSQL
- chartjs
- aws
- Jenkins
- redis
- java bigdecimal
- COALESCE
- bootstrap
- IntelliJ
- codedeploy error
- aws cicd
- codebuild
- Airflow
- JavaScript
- chart.js
- node
- VPN
- codepipeline
- Python
- AWS CI/CD 구축하기
- or some instances in your deployment group are experiencing problems.
- Spring
Archives
- Today
- Total
Small Asteroid Blog
[SQL] UNION과 UNION ALL의 차이 본문
728x90
UNION은 여러개의 sql문을 합쳐 하나의 sql문을 만들어준다.
두 쿼리의 합집합이라고 생각하면 된다.
UNION은 두 쿼리의 결과에서 중복되는 값을 삭제해 보여준다.
UNION ALL은 두 쿼리의 결과에서 중복되는 값을 모두 보여준다.
중복체크 여부에 따라 속도차이가 나는데 UNION ALL이 더 빠르다.
728x90
반응형
'백엔드 > DB' 카테고리의 다른 글
[sql] case - when - then - else - end (0) | 2021.07.30 |
---|---|
[DB] Star Schema / Snowflake schema / Fact Table / Dimension Table (0) | 2021.07.22 |
[SQL] DELETE / TRUNCATE / DROP 명령어 차이점 (0) | 2021.07.21 |
[SQL] :: - double colon (범위 결정 연산자) (0) | 2021.07.20 |
[SQL] row number (0) | 2021.07.19 |