⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 proc_pltcald_upd.sql

📁 工厂采购系统,DELPHI+SQL SERVER,三层技术
💻 SQL
字号:
if object_id('dbo.Proc_PltCald_Upd') is not null
drop procedure Proc_PltCald_Upd
go

Create procedure Proc_PltCald_Upd
@FYear	int = null,
@FMonth int = null,
@FDay   int = null,
@Holiday_Flag bit = null,
@Holiday_Type char(2) = null,
@Remark varchar(120) = null
as
begin
	if  exists(select Fdate from Plant_Calendar where FYear = @Fyear
	and Fmonth = @Fmonth  and Fday = @Fday) 
	begin
		update Plant_Calendar
			set Holiday_flag =@Holiday_flag,
			    Holiday_type = @Holiday_Type,
			    Remark = @Remark
	where FYear = @Fyear
	and Fmonth = @Fmonth  and Fday = @Fday
	end
end
			
			
		

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -