摘要:
1、修改字段名: alter table 表名 rename column A to B 2、修改字段类型: alter table 表名 alter column 字段名 type not null 3、修改字段默认值 alter table 表名 add default (0) for 字段名 阅读全文
摘要:
if Exists(select * from sysobjects where NAME = 'insert_custominfo' and type='P') drop procedure insert_custominfo go create proc insert_custominfo @mid nvarchar(50), @custominfoid nvarchar(50) output 阅读全文
摘要:
/*问题:type in (N'U') 中的N和U是什么意思? 答案:N是指Unicode编码,防止乱码;U是指用户表*/IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[EVADELSECUR 阅读全文