SQL Server 创建一个存储过程, 求两个数的乘积, 要求两个数作为输入参数,乘积作为输出参数

[复制链接]
查看11 | 回复1 | 2013-1-13 19:04:14 | 显示全部楼层 |阅读模式
create proc p_multiply(@a int=0,@b int=0,@c int output)asbeginset @c=@a*@bend--调用--declare @a int,@b int,@c int--select @a=3,@b=2--exec p_multiply @a,@b,@c output--select @c...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行