奥礼网
新记
数据库中如何查询某个表的总人数?
如题所述
举报该文章
相关建议 推荐于2017-11-24
select sum(人数) from 表名
如果你有字段名,或者其他需要,可再联系我。
追问
表名中没有人数
温馨提示:内容为网友见解,仅供参考
当前网址:
https://aolonic.com/aa/kk55g4k11.html
其他看法
第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
相似回答
大家正在搜
相关问题
数据库查询表的总人数怎么做
数据库中如何统计一个表中的人数
SQL查询统计某表的男女各个人数
在SQL数据库中查询一个表中指定多项总数的问题。
mysql查询数据库某个表的数据总量
在sql语句中怎么查询一个表的数据的数量?
SqlServer查询某个数据库中表的数量?
数据库,同时查询信息表和相关信息的总数,并根据相关信息总数排...