sql >> Database teknologi >  >> RDS >> Mysql

MySQL Sum() flere kolonner

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


  1. Grundlæggende om SQL Server Transaction Log

  2. Crystal Reports vs. Microsoft SQL Server Reporting Services

  3. Hvordan udfylder man hullerne i auto-inkrementering felter?

  4. Eclipse/MySQL integration plugins?