SQL Server用sql语句添加列,添加列注释

SQL Server用sql语句添加列,添加列注释

微软文档:
https://learn.microsoft.com/zh-cn/sql/relational-databases/tables/add-columns-to-a-table-database-engine?view=sql-server-ver15


alter  table article 
add    RedirectURL  varchar(600)   null

EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'融媒体引用新闻url' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'Article', @level2type=N'COLUMN',@level2name=N'RedirectURL'
GO

你可能感兴趣的:(sqlserver,sql,数据库,sqlserver)