Home > Backend Development > PHP Tutorial > 视图模型count

视图模型count

WBOY
Release: 2016-06-06 20:36:58
Original
1042 people have browsed it

两张表,一张员工表staff,一张部门表department
员工表里的bid对应部门表的id
如何用视图模型查询出一个部门下的人数?
视图模型的'COUNT(Blog.id)'=>'count'不能用

回复内容:

两张表,一张员工表staff,一张部门表department
员工表里的bid对应部门表的id
如何用视图模型查询出一个部门下的人数?
视图模型的'COUNT(Blog.id)'=>'count'不能用

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template