select count(*) *表示所有字段,你也可以写其中某个字段 比如有aaa这个字段 那么写成select count(aaa) 就是查找记录总数 select count(distinct aaa)就表示查找aaa这个字段不重复的记录总数