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
Post a Comment