sql2005 脚本中给字段写说明

本文介绍了一个用于用户注册信息管理的数据库表结构。该表包括ID、用户标识、昵称、密码、邮箱、是否禁用、注册时间及用户等级等字段,并为每个字段添加了描述性的注释。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

create table User_Reg
(
   ID                   int                            not null,
   userid               nvarchar(50)                     null, --compute (用户GUID),
   NickName             nvarchar(50)                  null,--compute (昵称),
   PassWord             nvarchar(50)                    null,--compute (密码),
   Email                nvarchar(50)                    null,--compute (登录邮箱),
   isDisable            int                           null, --compute (0表示禁止,1表示允许),
   Regtime              datetime                        null,--compute (注册时间),
   UserLevel            int                            null,--compute (用户等级),
   UserURL              nvarchar(50),
   constraint PK_USER_REG primary key clustered (ID)
);

exec sp_addextendedproperty N'MS_Description', N'昵称', N'user', N'dbo', N'table', N'User_Reg', N'column', N'NickName'

exec sp_addextendedproperty N'MS_Description', N'密码', N'user', N'dbo', N'table', N'User_Reg', N'column', N'PassWord'

exec sp_addextendedproperty N'MS_Description', N'登录邮箱', N'user', N'dbo', N'table', N'User_Reg', N'column', N'Email'

exec sp_addextendedproperty N'MS_Description', N'0表示禁止,1表示允许', N'user', N'dbo', N'table', N'User_Reg', N'column', N'isDisable'

exec sp_addextendedproperty N'MS_Description', N'注册时间', N'user', N'dbo', N'table', N'User_Reg', N'column', N'Regtime'
exec sp_addextendedproperty N'MS_Description', N'用户等级', N'user', N'dbo', N'table', N'User_Reg', N'column', N'UserLevel'

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值