在数据库A表中,有字段a(该字段的值可重复,会有多个相同的值),如何查询字段A中的某值出现几次
select a,count(1) from A group by a
select a,count(0) from tableA where a = 'value' group by a
select count(*) from A group by a