数据库中如何查询某个表的总人数?

如题所述

select sum(人数) from 表名
如果你有字段名,或者其他需要,可再联系我。追问

表名中没有人数

温馨提示:内容为网友见解,仅供参考
第1个回答  2016-12-06
select count(*) as'学生总数'
from 表名;
第2个回答  2011-10-15
select count(1) from 表名
第3个回答  2011-10-15
l楼上正解追问

no

追答

select count(id) from table

相似回答