mysql求和函数使用示例
程序员文章站
2024-02-26 21:40:16
复制代码 代码如下: $sql="select sum(prise) sum from buylist where mid = '1'"; $ress=mysql_quer...
复制代码 代码如下:
$sql="select sum(prise) sum from buylist where mid = '1'";
$ress=mysql_query($sql);
echo $rowxiaofei=mysql_fetch_assoc($ress);