반응형
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
- 파이썬
- list
- google apps script
- GIT
- array
- Python
- Github
- PANDAS
- Kotlin
- string
- c#
- Google Excel
- Tkinter
- math
- PostgreSQL
- PySpark
- SQL
- matplotlib
- Mac
- django
- gas
- Excel
- Apache
- dataframe
- Java
- Redshift
- hive
- numpy
- Google Spreadsheet
Archives
- Today
- Total
목록extract year (1)
달나라 노트
Hive : extract (날짜에서 특정 요소 추출하기, 시간 추출, 년도 추출, 주차 추출, 요일 추출)
extract 함수는 어떤 날짜/시간 string에서 원하는 요소를 추출합니다. Syntax extract(field from datetime_string) datetime_string에서 field에 명시된 요소를 추출합니다. field로 사용할 수 있는 것은 다음과 같습니다. - year -> 년 - month -> 월 - day -> 일 - quarter -> 분기 - week -> 주차 - dayofweek -> 요일 - hour -> 시 - minute -> 분 - second -> 초 select extract(year from '2023-11-10 12:34:56') ; -- Result 2023 2023-11-10 12:34:56에서 year(년)를 추출합니다. 2023이 return됩니다..
SQL/Apache Hive
2023. 10. 10. 22:54