Mysql命令-求一列字段的总和
求和命令
mysql> select SUM(price) from order where create_time>'2016-03-12';
+------------+
| SUM(price) |
+------------+
| 37.40 |
+------------+
1 row in set
转载请注明原处
求和命令
mysql> select SUM(price) from order where create_time>'2016-03-12';
+------------+
| SUM(price) |
+------------+
| 37.40 |
+------------+
1 row in set