我用这个语句查询数据库中oilvol指定日期的平均值 ,
$sql = "select avg([oilvol]) as oilvol from dhe_dayoilcosumevalue where theDay>='$first_day' and theDay<='$last_day' LIMIT 0 , 30";
$value=$mysql->getLine($sql);
计算出的平均值,数据库中不存在该数值,我想输出该数值,该怎么写?