• ADADADADAD

    sqlserver修改表结构字段怎么加注释[ 建站问答 ]

    建站问答 时间:2024-11-30 18:07:28

    作者:文/会员上传

    简介:

    在SQL Server中,可以使用以下语法来为表结构字段添加注释:EXEC sys.sp_addextendedproperty @name = N'MS_Description', @value = N'Your comment here'

    以下为本文的正文内容,内容仅供参考!本站为公益性网站,复制本文以及下载DOC文档全部免费。

    在SQL Server中,可以使用以下语法来为表结构字段添加注释:

    EXEC sys.sp_addextendedproperty @name = N'MS_Description', @value = N'Your comment here',@level0type = N'Schema', @level0name = 'dbo', @level1type = N'Table', @level1name = 'YourTableName', @level2type = N'Column', @level2name = 'YourColumnName';

    请将上面的语法中的以下部分替换为实际的值:

    Your comment here:要添加的注释内容YourTableName:表名YourColumnName:字段名

    执行上面的语法后,即可为指定的表结构字段添加注释。

    sqlserver修改表结构字段怎么加注释.docx

    将本文的Word文档下载到电脑

    推荐度:

    下载
    热门标签: sqlserver