if (not exists (select name from syscolumns where id = object_id('Pub_JYQBKXieBei') and name = 'CreateTime')) Begin ALTER TABLE Pub_JYQBKXieBei 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_JYQBKXieBei', @level2type=N'COLUMN', @level2name=N'CreateTime' End