阀门型号SQL存储过程中的IF_BEGIN_END作⽤域USE [DB_NAME]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [DBO].[PROC_TEST_IF_BEGIN END]
AS
BEGIN
休闲食品品牌SET NOCOUNT ON;
IF (DAY(GETDATE())=1)
BEGIN
PRINT 'A'
END
IF (DAY(GETDATE())=19)
BEGIN
李嫣将出国留学PRINT 'A19'
END
IF (DAY(GETDATE())=20)立春的含义和风俗
BEGIN
刺绣教程PRINT 'AAAA20'
END
IF OBJECT_ID('TEMPDB..#BASE') IS NOT NULL
BEGIN陈怡凡
PRINT 'B'
END
END
假设今天是19号,执⾏存储过程 EXEC PROC_Test_IF_BEGIN END
得到什么?
答案:a19
发布评论