数据库三级考试 存储过程真题汇总(含答案) 存储过程 题目1 create procedure proc1@商品号 int, @年份 int,@毛利 int output as declare @销售数量 int @销售单价 int@单价 int begin select @销售数量=sum(销售数量),@销售单价=销售单价 from 销售表 where 商品号= @商品号 and 销售时间=@年份 select @单价=单价 from 商品表 where 商品号= @商品号 <