[SQL] mysql 생년월일로 나이 계산식
SELECT FLOOR((CAST(REPLACE(CURRENT_DATE,'-','') AS UNSIGNED) - CAST('20120422' AS UNSIGNED)) / 10000);