How to use SQL statements to realize the sum of each column in Total One, Total Two, and Total Three?
PHP中文网2017-05-18 10:52:09
Are total one, total two and total three the column names of three columns? Do you want to calculate the sum of these three columns respectively?
If that’s what you mean, then try select sum(合计一) from 表名;
Calculate the sum of one column in this way, and the other two are the same