Home > Database > Mysql Tutorial > mysql存储过程输出显示问题

mysql存储过程输出显示问题

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 09:42:29
Original
1003 people have browsed it

mysql存储过程

存储过程语句:
DELIMITER //
create procedure sum_consume(in in_userpid varchar(20) ,out sum double)
begin
select sum(value) into sum from consume where userpid=in_userpid;
end
//
查询语句:
set @in_userpid='132201199406072222';
call sum_consume(@in_userpid,@sum);
问题:
为什么我的查询没有显示返回结果?
表示这个单独查询是绝对有值的
图片说明

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template