表名:ZL_IPpara












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IP_IDint40  此IP段标识
2class_IDint40    此IP段所属分类ID
3pro_namenvarchar2550    此IP段所属省级名
4city_namenvarchar2550    此IP段所属城市名
5startIPint40    此IP段起始IP
6endIpint40    此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

--注意:清空且复位表ID序列为初始值

TRUNCATE table ZL_IPpara