php - Store the sum of multiple columns together in another column -


this question has answer here:

i have 5 columns a,b,c,d,e in table in database.. each of type int , want them :

e = a+b+c+d 

how should in phpmyadmin? possible? how?

you can create view achieve this:

create view myview select a, b, c, d, a+b+c+d e mytable; 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -