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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -