テーブル:USERTABLE 誕生日カラム:user_birthday ◆年齢を求める select truncate(((curdate() + 0) – (user_birthday + 0)) / 10000, 0) as age from USERTABLE; ◆年代を求める select truncate(((curdate() + 0) – (user_birthday + 0)) / 10000, -1) as age from USERTABLE; ◆年代別合計を求める select truncate(((curdate() + 0) – (user_birthday + 0)) / 10000, -1) as age, count(*) from USERTABLE group by truncate(((curdate() + 0) – (user_birthday +