表名:ZL_Sen_Task












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Pidint40    所属栏目
3Titlenvarchar2000    标题
4Sourcenvarchar2000    来源,如新网,网站
5STypenvarchar200    搜索方式
6Conditionnvarchar10000    搜索条件
7SuitKeynvarchar2000    匹配词
8CDatedatetime83    创建时间
9Statusint40    状态 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

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

TRUNCATE table ZL_Sen_Task