반응형
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
- gas
- Google Spreadsheet
- Java
- array
- django
- GIT
- Python
- dataframe
- c#
- google apps script
- Apache
- Github
- Google Excel
- string
- SQL
- numpy
- Excel
- hive
- Mac
- PANDAS
- Kotlin
- PostgreSQL
- Redshift
- list
- PySpark
- Tkinter
- 파이썬
- matplotlib
- math
Archives
- Today
- Total
목록next_day (1)
달나라 노트

Redshift의 next_day() 함수는 어떤 timestamp로부터 가장 가까운 미래의 어떤 요일의 날짜를 return해줍니다. Syntax next_day(timestamp, weekday) - timestamp 기준이 되는 날짜시점입니다. - weekday 가장 가까운 미래의 어떤 요일을 의미합니다. 예시로 보는게 더 이해가 빠를겁니다. select current_date --> 2023-09-20 , next_day(current_date, 'mon') as next_mon --> 2023-09-25 , next_day(current_date, 'tue') as next_tue --> 2023-09-26 , next_day(current_date, 'wed') as next_wed --> 20..
SQL/Redshift
2023. 9. 20. 23:34