[MySQL] 날짜, 시간 처리
-- 년월일에서 날짜만 가져올때select name, day(birthdate)from people;-- 월만 가져올때select name, month(birthdate)from people;-- 년도만 가져올때select name, year(birthdate)from people; -- 요일을 문자열로 가져올때select name, dayname(birthdate)from people;-- 요일을 숫자로 가져올때 1=Sunday, 2=Monday, 3=Tuesday, 4=Wednesday, 5=Thursday, 6=Friday, 7=Saturday)select name, dayofweek(birthdate)from people;-- 시간도 각각 처리하는 함수가 있다select name, hour(bir..