반응형
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 | 31 |
Tags
- string
- PANDAS
- django
- SQL
- Python
- PySpark
- Redshift
- matplotlib
- PostgreSQL
- c#
- array
- Java
- Tkinter
- Mac
- 파이썬
- Google Spreadsheet
- GIT
- numpy
- dataframe
- Kotlin
- Excel
- hive
- math
- Apache
- Google Excel
- gas
- list
- Github
- google apps script
Archives
- Today
- Total
목록DATE_SUB (1)
달나라 노트
Hive : date_add(), date_sub() (특정 일 수 더하고 빼기)
date_add(날짜data/날짜 string, days number) date_sub(날짜data/날짜 string, days number) date_add는 주어진 날짜data/날짜 string에서 days number만큼 더한 날짜를 반환합니다. date_sub은 주어진 날짜data/날짜 string에서 days number만큼 뺀 날짜를 반환합니다. select current_date; 결과 : 2021-08-25 select date_add(current_date, 2); 결과 : 2021-08-27 select date_add(current_date, 30); 결과 : 2021-09-24 select date_sub(current_date, 2); 결과 : 2021-08-23 select da..
SQL/Apache Hive
2020. 12. 17. 00:42