新建带参数存储过程
CREATE PROCEDURE [dbo].[UpdateMeetingConfigDate]
(
@MeetingCode NVARCHAR(200)
)
AS
BEGIN
DECLARE @MeetingSn UNIQUEIDENTIFIER --定义一个参数 开会Sn
SELECT @MeetingSn=Sn,@StartDate=StartDate,@MeetingStartTime=MeetingStartTime,@MeetingEndTime=MeetingEndTime FROM Meeting WHERE Code=@MeetingCode
UPDATE MeetingConfig SET SignUpStartTime=@SignUpStatusDate,SignUpEndTime=@StartDate WHERE MeetingSn=@MeetingSn
END
GO
新建不带参数存储过程
CREATE PROC [dbo].[Update_Doctor_IsBind]
AS
UPDATE MeetingConfig SET SignUpStartTime=GETDATE()
GO
执行存储过程
exec UpdateMeetingConfigDate
exec UpdateMeetingConfigDate @MeetingCode
标签:MeetingSn,存储,MeetingCode,dbo,StartDate,UpdateMeetingConfigDate,过程 From: https://www.cnblogs.com/wzzcc/p/16828162.html