数据现在是这样的,我想确定出type列中的news和image。。。。甚至以后有其他值,他们分别有多少个。
SELECTtype,count(1) AS countsFROMmaterialGROUP BYtype