MSSQL创建表时添加说明

示例:

IF OBJECT_ID(MemberExt1) IS NOT NULL
    DROP TABLE MemberExt1
GO

CREATE TABLE MemberExt1
    (
      MemberId INT NOT NULL,
      QRImage NVARCHAR(500) ,
      Url NVARCHAR(500)
    )
EXEC sp_addextendedproperty NMS_Description, 
    N记录Member的二维码和个人推荐URL, Nuser, Ndbo,
    Ntable, NMemberExt1, NULL, NULL
EXEC sp_addextendedproperty NMS_Description, 
    N会员ID, Nuser, Ndbo,
    Ntable, NMemberExt1, Ncolumn, NMemberId
EXEC sp_addextendedproperty NMS_Description, 
    N二维码的存放位置, Nuser, Ndbo,
    Ntable, NMemberExt1, Ncolumn, NQRImage
EXEC sp_addextendedproperty NMS_Description, 
    N个人推荐URL, Nuser, Ndbo,
    Ntable, NMemberExt1, Ncolumn, NUrl

 

MSSQL创建表时添加说明,布布扣,bubuko.com

MSSQL创建表时添加说明

上一篇:windows下忘记mysql的root密码


下一篇:JDBC数据库通用DAO