mysql语句中select sum into
时间: 2023-11-04 14:33:45 浏览: 159
mysql语言之SELECT
SELECT SUM(column_name) INTO variable_name FROM table_name;
This statement selects the sum of values in a specific column of a table and stores the result in a variable. The variable can be used later in the code or displayed to the user.
阅读全文