MySQL 내장 함수 종류
1. MySQL 내장 함수· MySQL은 집계, 수학, 문자열, 날짜/시간, 논리 등 다양한 내장 함수를 포함 2. 집계 함수: COUNT, SUM, AVG, MAX, MIN 1) COUNT: 레코드 수를 반환 · select count(*) as '학생수' from student; · student table에서 belong 그룹화 후, 합계 출력: select count(*) as '학생수', belong from student group by belong; · student table에서 belong 그룹화 후, status가 2 이상인 값들의 개수 출력: select count(name) from student where status >= 2 group by belong; 2) SUM, AV..