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

mysql存储过程输出显示问题

WBOY
WBOYOriginal
2016-06-06 09:42:29913browse

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);
问题:
为什么我的查询没有显示返回结果?
表示这个单独查询是绝对有值的
图片说明

Statement:
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