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

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -