当前位置:网站首页>Thinkphp3 count ` *'problem

Thinkphp3 count ` *'problem

2022-06-25 12:25:00 sr_ www

// /ThinkPHP/Library/Think/Model.class.php

//  Implementation of statistical query 
// $field = isset($args[0]) ? $args[0] : '*';
// return $this->getField(strtoupper($method) . '(' . $this->db->parseKey($field, true) . ') AS tp_' . $method);

//  Implementation of statistical query 
$field = isset($args[0]) ? $args[0] : '*';
return $this->getField(strtoupper($method) . '(' . $field . ') AS tp_' . $method);

原网站

版权声明
本文为[sr_ www]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202200532457535.html