php select sum语句计算结果不对
$sql=mysql_query('selectSUM(b1+b2+b3+b4+b5+b6+b7)asbfromlog');计算结果不对$sql=mysql_query(...
$sql=mysql_query('select SUM(b1+b2+b3+b4+b5+b6+b7) as b from log');
计算结果不对
$sql=mysql_query('select SUM(b1) as b from log'); 单独计算任意一列都正确
$sql=mysql_query('select SUM(b1+b2+b3) as b from log'); 计算3列也正确
难道这个sum有数量限制吗 展开
计算结果不对
$sql=mysql_query('select SUM(b1) as b from log'); 单独计算任意一列都正确
$sql=mysql_query('select SUM(b1+b2+b3) as b from log'); 计算3列也正确
难道这个sum有数量限制吗 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询