《mysql必知必会》学习_第23章_20180809

第23章:使用存储过程

P165

call productpricing (@pricelow, @pricehigh ,@pricevearage);  #call接受存储过程的名字以及需要传递给它的任意参数。返回最低,最高,平均价格#  ##报错,这个语句是不是应该指定哪个表???##

P166

create procedure productpricing()

begin

select avg(prod_price) as priceaverage from products;

end

#报错,当出现products;的时候,运行不是应该结束了吗?#

原文地址:https://www.cnblogs.com/qiyuanjiejie/p/9452185.html