MySQL sum elements of a column

 select sum(A),sum(B),sum(C) from mytable where id in (1,2,3);

Leave a Comment