mysql教程

超轻量级php框架startmvc

mysql求和函数使用示例

更新时间:2020-04-25 00:25:02 作者:startmvc
$sql="SELECTSUM(prise)sumfrombuylistwheremid='1'";$ress=mysql_query($sql);echo$rowxiaofei=mysql_fetch_assoc($ress);
 
$sql="SELECT SUM(prise) sum from buylist where mid = '1'";
$ress=mysql_query($sql);
echo $rowxiaofei=mysql_fetch_assoc($ress);
mysql 求和函数