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