반응형
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
- Google Excel
- Apache
- GIT
- PySpark
- PANDAS
- c#
- math
- list
- dataframe
- gas
- Redshift
- matplotlib
- numpy
- Google Spreadsheet
- array
- Github
- Tkinter
- SQL
- Excel
- google apps script
- Mac
- 파이썬
- PostgreSQL
- django
- string
- Python
- hive
- Kotlin
- Java
Archives
- Today
- Total
목록to_date (2)
달나라 노트
Redshift : to_date (문자를 날짜로 변환)
to_date(date_str, date_format) to_date는 위처럼 2개의 parameter를 받습니다. date_str = 날짜를 의미하는 텍스트(이 값의 date type은 날짜가 아닙니다.) date_format = date_str의 날짜 format 바로 한번 예시를 봅시다. select to_date('20210121', 'yyyymmdd') as date; select to_date('2021-01-21', 'yyyy-mm-dd') as date; select to_date('2021/01/21', 'yyyy/mm/dd') as date; select to_date('01-21-2021', 'mm-dd-yyyy') as date; select to_date('01/21/2021', ..
SQL/Redshift
2021. 1. 22. 15:19