if (not exists (select name from syscolumns where id = object_id('Pub_JYQBKPlanSelf') and name = 'CreateTime')) Begin ALTER TABLE Pub_JYQBKPlanSelf ADD CreateTime datetime EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间 type:datetime required:true required_msg:请选择创建时间 required_default:null regex:datetime regex_msg:创建时间格式不正确' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'Pub_JYQBKPlanSelf', @level2type=N'COLUMN', @level2name=N'CreateTime' End