TP去重统计查询

浏览:33838 发布日期:2013/05/12 分类:用法示例
当统计一个有重复的字段可以用这个方法
$count = $model->where($map)->count('distinct(id)');
评论( 相关
后面还有条评论,点击查看>>