$sql = "select t1.*,t2.cat_name as catname from goods as t1,category as t2 where t1.cat_id = t2.cat_name;";
$result = $model -> query($sql);
$count = $model -> count();
链表查询之后的集 无法用count统计数量 求解。。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号