数据新建存储过程

新增存过过程-->先删后增

-- 判断要创建的存储过程名是否存在
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[RewriteSeventyTwo]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop proc [dbo].[RewriteSeventyTwo]

--创建存储过程
CREATE procedure [dbo].[RewriteSeventyTwo](
    --参数
)
as 
begin
    --heihei
end
posted @ 2021-02-04 14:51  vvull  阅读(86)  评论(0编辑  收藏  举报