| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- Java
- google apps script
- Excel
- Python
- array
- Kotlin
- PostgreSQL
- Presto
- numpy
- gas
- matplotlib
- Google Spreadsheet
- dataframe
- Google Excel
- django
- c#
- 파이썬
- PySpark
- Apache
- PANDAS
- Github
- Redshift
- list
- hive
- Tkinter
- string
- SQL
- math
- GIT
- Today
- Total
목록Redshfit (2)
달나라 노트
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..
set timezone syntax를 이용하면 특정 지역에 대한 시간대를 설정할 수 있습니다.즉, 서버에 기본으로 적용되어있는 시간대를 무시하고 내가 설정한 시간대를 이용할 수 있습니다. Syntaxset timezone to 'area'set time zone 'area'area는 원하는 지역의 이름을 의미합니다.time zone 설정은 위처럼 2개의 형태로 사용할 수 있습니다.둘 중 어느 것을 사용하더라도 결과는 동일합니다.(이 글에선 첫 번째 형식을 예시로 서술합니다.) set timezone to 'Asia/Seoul';위 구문을 실행하면 Asia의 Seoul로 timezone이 설정됩니다. set timezone to 'America/New_York'위 구문은 America의 New..