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