自定义存储过程

语法 :

创建时:

create proc[edure] 存储过程名  

@参数 1   数据类型  =默认值  output,

……

@参数N 数据类型 =默认值  output

as

 sql语句

go

调用时:

扫描二维码关注公众号,回复: 5124620 查看本文章

    注意接收存储过程返回值时必须加output关键字

删除时:

删除存储过程 : drop proc 存储过程名

修改时 :

修改存储过程 : alter proc 存储过程名   

@参数1 数据类型  =默认值 output,

……

@参数2 数据类型  =默认值  output

as

sql语句 

go

猜你喜欢

转载自blog.csdn.net/weixin_43880263/article/details/86689491
今日推荐