mysql求和函数使用示例

内容摘要
复制代码 代码如下: $sql="SELECT SUM(prise) sum from buylist where mid = '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);

代码注释

作者:喵哥笔记

IDC笔记

学的不仅是技术,更是梦想!