Mysql
 sql >> Base de données >  >> RDS >> Mysql

MySQL Sum() plusieurs colonnes

SELECT student, (SUM(mark1)+SUM(mark2)+SUM(mark3)....+SUM(markn)) AS Total
 FROM your_table
 GROUP BY student