查找男职工的平均年龄,为输出的集函数取别名。完整查询语录是什么,平均数的查询语录格式是什么?
select avg(age) as avg_age from employee where sex='男'
中间的 as 可有可无