id | number
1 | 10
2 | 24
3 | 45
4 | 25
5 | 12
How can I get the sum of all numbers in the number column?
Thanks
Should just be SELECT SUM(number) FROM table.
http://www.tizag.com/mysqlTutorial/mysqlsum.php has a nifty tutorial
select sum(number)
from yourtable
You'll want to look at MySQL's aggregate functions to see what all's available.