select id, name ,sum(count) csum from mytable where name='张三' HAVING (csum>100)
Note that there is no need to add and before HAVING
select id, name ,sum(count) csum from mytable where name='张三' HAVING (csum>100)
Note that there is no need to add and before HAVING