tp5去重统计某字段的数量

$count = model('tableName')->count('DISTINCT 字段名');

 

posted @ 2020-03-15 20:52  一颗糊涂淡  阅读(1452)  评论(0编辑  收藏  举报