自定义存储过程

语法 :

创建时:

create proc[edure] 存储过程名  

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

……

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

as

 sql语句

go

调用时:

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

删除时:

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

修改时 :

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

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

……

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

as

sql语句 

go

猜你喜欢

转载自blog.csdn.net/weixin_43880263/article/details/86689491