MySQL sum elements of a column May 21, 2023 by Tarik select sum(A),sum(B),sum(C) from mytable where id in (1,2,3);