tp5去重统计某字段的数量

$count = model('tableName')->count('DISTINCT 字段名');
╰︶﹉⋛⋋⊱⋋๑๑⋌⊰⋌⋚﹉︶╯
原文地址:https://www.cnblogs.com/zhangcheng001/p/12499933.html