Get the App
SLTechnology News&Howtos  ›  Database  › 

How to use mysql summation

Shulou Source: shulou.com Published: 2022-06-01 03:40:26 10月04日 Update

How to use mysql summation? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

How to use mysql summation

1. Summation of the addition of two fields

Select C1 + c2 from table where Id = 1

two。 Summation of the same field

Select api_code,sum (total_call_cnt) total_call_cnt

Group by api_code order by sum (total_call_cnt) desc

MySQL is a relational database management system developed by the Swedish company MySQL AB and belongs to the products of Oracle. MySQL is one of the most popular relational database management systems. In the aspect of WEB application, MySQL is one of the best RDBMS (Relational Database Management System) application software. MySQL is a relational database management system in which relational databases store data in different tables instead of all data in one large warehouse, which increases speed and flexibility.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Tags: Data database management system system management sum fields help application different clear two product company content for this in the library application software article novice Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS MariaDB Redmi OPPO Reno Shulou Information