比如把count (1)的值设置到某个字段里,或是加入某个运算里,或是用来修改某个字段
通过连接表实现,例如
update TB set sum= a.sum from (select type, count(1) as sum from TB group by type)a where type = a.type
看具体需求也可用join等语句