반응형 yearweek1 [Mysql] WEEK 관련 함수 (YEARWEEK, WEEKDAY) mysql 을 사용중이라면 오늘이 몇년도의 몇번째 주 인지를 알수가 있다. 기본적으로 주를 구분하는 요일은 월요일로 되어있고 이 설정 역시 변경이 가능하다. 예제는 아래와 같다. SELECT YEARWEEK('2024-01-01'); -> 202401좀더 자세한 내용은 아래 사이트 참고 바란다.https://www.w3schools.com/Sql/func_mysql_yearweek.asp MySQL YEARWEEK() FunctionW3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, J.. 2024. 5. 16. 이전 1 다음 반응형