EXTRACT1 MySQL - 날짜함수, extract #날짜함수 현재 날짜와 시간, 일시를 다루는 함수의 경우 from 구문이 없이 사용 가능합니다. current_date 현재 날짜 current_time 현재 시간 current_timestamp 현재 날짜와 시간 사용 예시 select current_date, current_time, current_timestamp; 결과 #extract 현재 날짜에서 년, 월, 일을 따로 추출하고 싶으면 extract구문을 사용하면 됩니다. 사용 예시 select current_date, extract(year from current_date) as year, extract(month from current_date) as month, extract(day from current_date) as day; 결과 2023. 7. 31. 이전 1 다음