SQLServer表增加列和增加列注释

 

alter table 表名
add 列名 int  null
--给列增加注释
execute sp_addextendedproperty 'MS_Description',
'注释名',
'user', 'dbo', 'table', '表名', 'column', '列名';

 

posted @ 2023-02-08 10:08  博客YS  阅读(281)  评论(0编辑  收藏  举报