序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | Pid | int | 4 | 0 | 是 | 所属栏目 | ||||
3 | Title | nvarchar | 200 | 0 | 是 | 标题 | ||||
4 | Source | nvarchar | 200 | 0 | 是 | 来源,如新网,网站 | ||||
5 | SType | nvarchar | 20 | 0 | 是 | 搜索方式 | ||||
6 | Condition | nvarchar | 1000 | 0 | 是 | 搜索条件 | ||||
7 | SuitKey | nvarchar | 200 | 0 | 是 | 匹配词 | ||||
8 | CDate | datetime | 8 | 3 | 是 | 创建时间 | ||||
9 | Status | int | 4 | 0 | 是 | 状态 0:禁用,1:启用 |
数据采集记录表
GO
CREATE TABLE [dbo].[ZL_Sen_Task](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Pid] [int] NULL,
[Title] [nvarchar](200) NULL,
[Source] [nvarchar](200) NULL,
[SType] [nvarchar](20) NULL,
[Condition] [nvarchar](1000) NULL,
[SuitKey] [nvarchar](200) NULL,
[CDate] [datetime] NULL,
[Status] [int] NULL,
CONSTRAINT [PK_ZL_Sen_Task] PRIMARY KEY CLUSTERED
([ID] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
GO
CREATE TABLE [dbo].[ZL_Sen_Data](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Title] [nvarchar](400) NULL,
[Source] [nvarchar](200) NULL,
[Author] [nvarchar](200) NULL,
[Link] [nvarchar](2000) NULL,
[CDate] [datetime] NULL,
[Day] [int] NULL,
[CollDate] [datetime] NULL,
[TaskID] [int] NULL,
[TaskInfo] [nvarchar](2000) NULL,
CONSTRAINT [PK_ZL_Sen_Data] PRIMARY KEY CLUSTERED
([ID] ASC)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]) ON [PRIMARY]
SET IDENTITY_INSERT [ZL_Sen_Task] ON
INSERT [ZL_Sen_Task] ([ID],[Pid],[Title],[Source],[SType],[Condition],[CDate],[Status]) VALUES ( 1,0,N'微软中国',N'新闻,微博,微信',N'0',N'微软中国',N'2015/6/3 17:26:40',1)
INSERT [ZL_Sen_Task] ([ID],[Pid],[Title],[Source],[SType],[Condition],[CDate],[Status]) VALUES ( 2,0,N'健康养生',N'新闻,微博,微信',N'0',N'健康养生',N'2015/6/3 17:26:50',1)
INSERT [ZL_Sen_Task] ([ID],[Pid],[Title],[Source],[SType],[Condition],[CDate],[Status]) VALUES ( 3,0,N'空气污染',N'新闻,微博,微信',N'0',N'空气污染',N'2015/6/3 17:26:59',1)
INSERT [ZL_Sen_Task] ([ID],[Pid],[Title],[Source],[SType],[Condition],[CDate],[Status]) VALUES ( 4,0,N'高考动态',N'新闻,微博,微信',N'0',N'高考动态',N'2015/6/3 17:27:07',1)
SET IDENTITY_INSERT [ZL_Sen_Task] OFF
detele from ZL_Sen_Task
drop table ZL_Sen_Task
TRUNCATE table ZL_Sen_Task