[MySQL] DATE_FORMAT, DATEDIFF DATE_FORMAT : ํ์ ์์) %Y, %y, %m, %d ๋ฑSELECT DATE_FORMAT(๋ ์ง,ํ์) as columnNamefrom ํ ์ด๋ธ๋ช DATEDIFF : ๋ ์ง ์ฐจ์ด ๊ตฌํ๊ธฐSELECT DATEDIFF(๊ตฌ๋ถ์,๋ ์ง, ๋ ์ง)+1 as columnNamefrom ํ ์ด๋ธ๋ช โ๏ธ์ ๋ฆฌ/โ๏ธSQL 2024.07.25