var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
I have a mysql table. One of the columns in the table is called "points" and all of the values under it are numbers. My question is: how do I take all of those values from each row under "points" and add them all up for a sum total.
select sum(points) from your_table; Should do the trick.
As suggested by HTTPeasy,You can use query as
SELECT SUM(COLUMN_NAME) FROM <TABLE_NAME>;
So for your requirement use
select sum(points) from <tablename>;
Log in with your username and password
Forgot your password?
Subscribe Now & Get The WHT Quick Start Guide!
WP Engine Gives Customers Free SSL Certificates
Google Open Sources Cloud-Based Registry Nomulus
Is Today"s DDoS Attack Part of a Troubling Trend?
Weebly Works to Harden Security as 43 Million User Accounts Compromised
Internet Service Disrupted in Large Parts of Eastern U.S.
Company Behind Snapchat Poaches Amazon Data Center Head
Security Vendors, Take Note: Average Security Budget Has Doubled Over Two Years
Why Is The WordPress REST API Such A Big Deal?
Silicon Valley Won"t Come to the Broadband Rescue
Where Web Hosting Companies Stand on the 2016 Inc. 5000