序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | IP_ID | int | 4 | 0 | 是 | 是 | 否 | 此IP段标识 | ||
2 | class_ID | int | 4 | 0 | 是 | 此IP段所属分类ID | ||||
3 | pro_name | nvarchar | 255 | 0 | 是 | 此IP段所属省级名 | ||||
4 | city_name | nvarchar | 255 | 0 | 是 | 此IP段所属城市名 | ||||
5 | startIP | int | 4 | 0 | 是 | 此IP段起始IP | ||||
6 | endIp | int | 4 | 0 | 是 | 此IP段结束IP |
IP地址段
GO
CREATE TABLE [dbo].[ZL_IPpara](
[IP_ID] [int] IDENTITY(1,1) NOT NULL,
[class_ID] [int] NULL,
[pro_name] [nvarchar](255) NULL,
[city_name] [nvarchar](255) NULL,
[startIP] [int] NULL,
[endIp] [int] NULL,
CONSTRAINT [PK_ZL_IPpara] PRIMARY KEY CLUSTERED
([IP_ID] ASC
) ON [PRIMARY]
) ON [PRIMARY]
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'此IP段所属分类ID' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IPpara', @level2type=N'COLUMN', @level2name=N'class_ID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'此IP段所属省级名' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IPpara', @level2type=N'COLUMN', @level2name=N'pro_name'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'此IP段所属城市名' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IPpara', @level2type=N'COLUMN', @level2name=N'city_name'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'此IP段起始IP' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IPpara', @level2type=N'COLUMN', @level2name=N'startIP'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'此IP段结束IP' ,@level0type=N'USER', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_IPpara', @level2type=N'COLUMN', @level2name=N'endIp'
detele from ZL_IPpara
drop table ZL_IPpara
TRUNCATE table ZL_IPpara