create table student( name varchar(15), gender varchar(15), age int ); insert into student values("lilei","male",18); insert into student values("alex","male",17); insert into student values("jack","male",20); insert into student values("john","male",19); insert into student values("nullpeople","male",null); avg(字段)函数: 返回指定字段的数据的平均值 avg() 通过对表中行数计数并计算指定字段的数据总和,求得该字段的平均值。