摘要: 新增存过过程-->先删后增 -- 判断要创建的存储过程名是否存在 if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[RewriteSeventyTwo]') and OBJECTPROPERTY(id, N'I 阅读全文
posted @ 2021-02-04 14:51 vvull 阅读(86) 评论(0) 推荐(0) 编辑
摘要: if OBJECT_ID(N'tSeventyTwoRpt',N'U') is not null begin print '表存在!' end else begin print '表不存在!' CREATE TABLE [dbo].[tSeventyTwoRpt]( [d_Date] [date] 阅读全文
posted @ 2021-02-04 14:35 vvull 阅读(52) 评论(0) 推荐(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 阅读全文
posted @ 2021-02-04 14:29 vvull 阅读(96) 评论(0) 推荐(0) 编辑