Mysql命令-求一列字段的总和

 

求和命令

 

mysql> select SUM(price) from order where create_time>'2016-03-12';
+------------+
| SUM(price) |
+------------+
| 37.40 |
+------------+
1 row in set

相关文章:

  • 2021-11-20
  • 2022-01-31
  • 2022-02-24
  • 2021-12-31
  • 2021-11-18
  • 2022-12-23
猜你喜欢
  • 2021-10-27
  • 2022-12-23
  • 2022-01-21
  • 2022-12-23
  • 2021-11-28
  • 2021-11-29
  • 2021-10-31
相关资源
相似解决方案