1. select count(*) from table1;
统计所有字段
2. select count(field1) from table1;
统计所有值不是null的字段, ''不是null
本文将介绍如何使用SQL查询来统计数据库中的数据,包括所有字段的统计和特定非空字段的统计。
1. select count(*) from table1;
统计所有字段
2. select count(field1) from table1;
统计所有值不是null的字段, ''不是null

被折叠的 条评论
为什么被折叠?