[Athena] date_format 연도, 월, 일수, 주차, 요일 찾기
Data Analyst

빅데이터 관련 자료/[SQL] Basic

[Athena] date_format 연도, 월, 일수, 주차, 요일 찾기

carpe08 2022. 11. 22. 17:14
320x100
320x100
date_format(event_timestamp_kst,'%Y-%m-%d %H:%i:%s')

 

'Y' : 연도 추출

'm' : 월 추출

'd' : 일 추출

'v' : 주차 추출

'H' : 시간 추출

'i' : 분 추출

's' : 초 추출

 

320x100
320x100