Home  >  Article  >  Backend Development  >  视图模型count

视图模型count

WBOY
WBOYOriginal
2016-06-06 20:36:581013browse

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

回复内容:

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

Statement:
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