AI编程助手
AI免费问答

联表查询问题。

$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统计数量 求解。。


# PHP
子寒 子寒 2569 天前 1042 次浏览

全部回复(0) 我要回复

暂无回复
  • 取消 回复 发送