php - How to get sum with different description in column -
id| name total 1 | meow 1 2 | meow 2 3 | raf 5 4 | meow 5 5 | raf 5
i want result this
meow =8 raf =10
select name, sum(total) total_sum tablename group name
Comments
Post a Comment