mysql中count的使用

来源:互联网 发布:免费hifi音乐软件 编辑:程序博客网 时间:2024/05/16 00:29

1. select count(*) from table1;

 统计所有字段

2. select count(field1) from table1;

 统计所有值不是null的字段, ''不是null

原创粉丝点击