序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 否 | 主键 | |||
2 | BankOfDeposit | nvarchar | 50 | 0 | 是 | 开户行及支行全称 | ||||
3 | NameOfDeposit | nvarchar | 50 | 0 | 是 | 开户人真实姓名 | ||||
4 | Account | nvarchar | 50 | 0 | 是 | 开户帐号 | ||||
5 | Name | nvarchar | 50 | 0 | 是 | 会员真实姓名 | ||||
6 | CardID | nvarchar | 50 | 0 | 是 | 会员身份证号码 | ||||
7 | Lock | int | 4 | 0 | 是 | 是否绑定用户真实姓名 | ||||
8 | UserId | int | 4 | 0 | 是 | 所属用户ID | ||||
9 | PayId | int | 4 | 0 | 是 | 支付ID |
帐户表
CREATE TABLE [dbo].[ZL_Accountinfo](
[ID] [int] IDENTITY(1,1) NOT NULL,
[BankOfDeposit] [nvarchar](50) NULL,
[NameOfDeposit] [nvarchar](50) NULL,
[Account] [nvarchar](50) NULL,
[Name] [nvarchar](50) NULL,
[CardID] [nvarchar](50) NULL,
[Lock] [int] NULL,
[UserId] [int] NULL,
[PayId] [int] NULL
) ON [PRIMARY]
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'主键' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'ID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开户行及支行全称' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'BankOfDeposit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开户人真实姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'NameOfDeposit'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'开户帐号' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'Account'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员真实姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'Name'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'会员身份证号码' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'CardID'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'是否绑定用户真实姓名' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'Lock'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属用户ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'UserId'
GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'支付ID' , @level0type=N'SCHEMA',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Accountinfo', @level2type=N'COLUMN',@level2name=N'PayId'
GO
detele from ZL_Accountinfo
drop table ZL_Accountinfo
TRUNCATE table ZL_Accountinfo