반응형
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
- c#
- string
- Python
- Tkinter
- Redshift
- array
- django
- Google Excel
- Apache
- matplotlib
- dataframe
- numpy
- PANDAS
- math
- PySpark
- gas
- Google Spreadsheet
- hive
- Java
- Presto
- SQL
- Kotlin
- Github
- PostgreSQL
- list
- google apps script
- GIT
- 파이썬
- Excel
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