MySQL의 날짜관련 문법 중 DATE_FORMAT함수의 정의는 하기와 같습니다.
MySQL 공식 문서를 참고하였습니다.
https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html#function_date-format
MySQL :: MySQL 8.0 Reference Manual :: 12.7 Date and Time Functions
12.7 Date and Time Functions This section describes the functions that can be used to manipulate temporal values. See Section 11.2, “Date and Time Data Types”, for a description of the range of values each date and time type has and the valid formats
dev.mysql.com
• DATE_FORMAT(date,format)
인자로 삽입 된 date의 형식을 지정한 format으로 변경하여 출력합니다.
YYYY-MM-DD형식으로 나타내기 위해서는 '%Y-%m-%d'로 기입합니다.
'웹개발자공부 > MySQL' 카테고리의 다른 글
MySQL - WITH와 Subquery의 정의 (0) | 2023.02.15 |
---|---|
MySQL - IF함수의 정의 (0) | 2023.02.15 |
MySQL - DATEDIFF함수의 정의 (0) | 2023.02.15 |
MySQL - IFNULL, NULLIF의 정의 (2) | 2023.02.08 |
MySQL - 원격 서버 접속 시 터미널 명령어 (0) | 2023.01.03 |