序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | Flow | int | 4 | 0 | 是 | 否 | 主键 | |||
2 | Code | varchar | 50 | 0 | 是 | 否 | 客户编号 | |||
3 | Id_Code | varchar | 50 | 0 | 是 | 证件号码 | ||||
4 | Sex | char | 1 | 0 | 是 | 性别(0为女,1为男,2为未知) | ||||
5 | Native | nvarchar | 50 | 0 | 是 | 籍贯 | ||||
6 | Nation | varchar | 12 | 0 | 是 | 民族 | ||||
7 | Marriage | char | 1 | 0 | 是 | 婚姻状况(0为未知,1为未婚,2为已婚,3为离异) | ||||
8 | Finish_School | nvarchar | 50 | 0 | 是 | 毕业学校 | ||||
9 | Cultrue_Love | nvarchar | 50 | 0 | 是 | 文化爱好 | ||||
10 | Sport_Love | nvarchar | 50 | 0 | 是 | 体育爱好 | ||||
11 | Life_Love | nvarchar | 50 | 0 | 是 | 生活爱好 | ||||
12 | FUN_Love | nvarchar | 50 | 0 | 是 | 娱乐休闲爱好 | ||||
13 | Other_Love | nvarchar | 50 | 0 | 是 | 其他爱好 | ||||
14 | Birthday | datetime | 8 | 3 | 是 | 生日 | ||||
15 | Income | nvarchar | 50 | 0 | 是 | |||||
16 | Home_Circs | nvarchar | 100 | 0 | 是 | |||||
17 | Education | nvarchar | 50 | 0 | 是 | 学历 | ||||
18 | Message_Address | nvarchar | 50 | 0 | 是 | 客户地址 | ||||
19 | Work_Phone | varchar | 12 | 0 | 是 | 工作手机号码 | ||||
20 | Home_Phone | varchar | 12 | 0 | 是 | 家庭手机号码 | ||||
21 | Fax_phone | varchar | 12 | 0 | 是 | 传真号码 | ||||
22 | Telephone | varchar | 12 | 0 | 是 | 电话号码 | ||||
23 | Little_Smart | varchar | 12 | 0 | 是 | |||||
24 | Homepage | nvarchar | 50 | 0 | 是 | 客户主页 | ||||
25 | QQ_Code | varchar | 50 | 0 | 是 | QQ号码 | ||||
26 | ICQ_Code | varchar | 50 | 0 | 是 | ICQ号码 | ||||
27 | UC_Code | varchar | 50 | 0 | 是 | UC号码 | ||||
28 | Email_Address | nvarchar | 50 | 0 | 是 | 邮件地址 | ||||
29 | MSN_Code | varchar | 50 | 0 | 是 | MSN号码 | ||||
30 | YaoHu_Code | varchar | 50 | 0 | 是 | |||||
31 | Aim_Code | varchar | 50 | 0 | 是 | Aim号码 | ||||
32 | ZipCodeW | nvarchar | 255 | 0 | 是 | 邮政编码 | ||||
33 | country | nvarchar | 255 | 0 | 是 | 国家 | ||||
34 | province | nvarchar | 255 | 0 | 是 | 省 | ||||
35 | city | nvarchar | 255 | 0 | 是 | 市 |
客户扩展表
GO
CREATE TABLE [dbo].[ZL_Client_Penson](
[Flow] [int] IDENTITY(1,1) NOT NULL,
[Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NOT NULL,
[Id_Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Sex] [char](1) COLLATE Chinese_PRC_CI_AS NULL,
[Native] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Nation] [varchar](12) COLLATE Chinese_PRC_CI_AS NULL,
[Marriage] [char](1) COLLATE Chinese_PRC_CI_AS NULL,
[Finish_School] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Cultrue_Love] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Sport_Love] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Life_Love] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[FUN_Love] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Other_Love] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Birthday] [datetime] NULL,
[Income] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Home_Circs] [nvarchar](100) COLLATE Chinese_PRC_CI_AS NULL,
[Education] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Message_Address] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Work_Phone] [varchar](12) COLLATE Chinese_PRC_CI_AS NULL,
[Home_Phone] [varchar](12) COLLATE Chinese_PRC_CI_AS NULL,
[Fax_phone] [varchar](12) COLLATE Chinese_PRC_CI_AS NULL,
[Telephone] [varchar](12) COLLATE Chinese_PRC_CI_AS NULL,
[Little_Smart] [varchar](12) COLLATE Chinese_PRC_CI_AS NULL,
[Homepage] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[QQ_Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[ICQ_Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[UC_Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Email_Address] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[MSN_Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[YaoHu_Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Aim_Code] [varchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[ZipCodeW] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
[country] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
[province] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
[city] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
CONSTRAINT [PK_ZL_Client_Penson] PRIMARY KEY CLUSTERED
([Code] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'客户编号' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Code'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'性别(0为女,1为男,2为未知)' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Sex'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'籍贯' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Native'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'民族' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Nation'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'婚姻状况(0为未知,1为未婚,2为已婚,3为离异)' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Marriage'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'毕业学校' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Finish_School'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'文化爱好' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Cultrue_Love'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'体育爱好' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Sport_Love'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'生活爱好' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Life_Love'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'娱乐休闲爱好' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'FUN_Love'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'其他爱好' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Other_Love'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'学历' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Client_Penson', @level2type=N'COLUMN', @level2name=N'Education'
detele from ZL_Client_Penson
drop table ZL_Client_Penson
TRUNCATE table ZL_Client_Penson