码迷,mamicode.com
首页 > 数据库 > 详细

php 中 mysql 操作 语句 总结

时间:2016-05-25 20:42:44      阅读:217      评论:0      收藏:0      [点我收藏+]

标签:

$goods = D(‘Goods‘);

// 获得总条数价格大于1000的商品

$cnt = $goods -> where (‘price > 1000‘) -> count();   sum() 总数   max()   avg() 平均数  min()

 

php 中 mysql 操作 语句 总结

标签:

原文地址:http://www.cnblogs.com/dh2608/p/5528152.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!