02 2021 档案
发表于 2021-02-04 14:51阅读次数:89评论次数:0
摘要:新增存过过程-->先删后增 -- 判断要创建的存储过程名是否存在 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[RewriteSeventyTwo]') and OBJECTPROPERTY(id, N'I
阅读全文 »
发表于 2021-02-04 14:35阅读次数:54评论次数:0
摘要:if OBJECT_ID(N'tSeventyTwoRpt',N'U') is not null begin print '表存在!' end else begin print '表不存在!' CREATE TABLE [dbo].[tSeventyTwoRpt]( [d_Date] [date]
阅读全文 »
发表于 2021-02-04 14:29阅读次数:97评论次数:0
摘要:--表tTriage新增列b_UnplanReturn IF COL_LENGTH('tTriage', 'b_UnplanReturn') IS NOT NULL PRINT N'存在' ELSE begin PRINT N'不存在' alter table tTriage add b_Unpla
阅读全文 »