序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 否 | ||||
2 | ReceivName | nvarchar | 50 | 0 | 是 | 收货人姓名 | ||||
3 | Street | nvarchar | 1000 | 0 | 是 | 街道 | ||||
4 | Zipcode | nvarchar | 50 | 0 | 是 | 邮政编码 | ||||
5 | phone | nvarchar | 50 | 0 | 是 | 电话号码 | ||||
6 | MobileNum | nvarchar | 50 | 0 | 是 | 手机号码 | ||||
7 | isDefault | int | 4 | 0 | 是 | 是否默认:0为是,1为否 | ||||
8 | UserID | int | 4 | 0 | 是 | 用户ID | ||||
9 | Provinces | nvarchar | 50 | 0 | 是 | 省市 | ||||
10 | nvarchar | 50 | 0 | 是 | 电子邮箱 |
用户地址表
GO
CREATE TABLE [dbo].[ZL_UserRecei](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ReceivName] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Street] [nvarchar](1000) COLLATE Chinese_PRC_CI_AS NULL,
[Zipcode] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[phone] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[MobileNum] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[isDefault] [int] NULL,
[UserID] [int] NULL,
[Provinces] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,
[Email] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL
) 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_UserRecei', @level2type=N'COLUMN',@level2name=N'ReceivName'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'街道' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_UserRecei', @level2type=N'COLUMN',@level2name=N'Street'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'邮政编码' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_UserRecei', @level2type=N'COLUMN',@level2name=N'Zipcode'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'电话号码' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_UserRecei', @level2type=N'COLUMN',@level2name=N'phone'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'手机号码' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_UserRecei', @level2type=N'COLUMN',@level2name=N'MobileNum'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'是否默认:0为是,1为否' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_UserRecei', @level2type=N'COLUMN',@level2name=N'isDefault'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'用户ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_UserRecei', @level2type=N'COLUMN',@level2name=N'UserID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'省市' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_UserRecei', @level2type=N'COLUMN',@level2name=N'Provinces'
detele from ZL_UserRecei
drop table ZL_UserRecei
TRUNCATE table ZL_UserRecei