表名:ZL_Keywords












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1KeywordIDint40  主键ID
2KeywordTextnvarchar2000    关键字内容
3KeywordTypeint40    关键字类别:2为试题关键字 3为试卷关键字
4Priorityint40   0关键词优先级
5Hitsint40   0点击数
6LastUseTimedatetime83   getdate最后使用时间
7ArrGeneralIDntext160     
8QuoteTimesint40    引用次数

简要说明:

关键词表

GO
CREATE TABLE [dbo].[ZL_Keywords](
[KeywordID] [int] IDENTITY(1,1) NOT NULL,
[KeywordText] [nvarchar](200) NOT NULL,
[KeywordType] [int] NOT NULL,
[Priority] [int] NOT NULL CONSTRAINT [DF_ZL_Keywords_Priority]  DEFAULT (0),
[Hits] [int] NOT NULL CONSTRAINT [DF_ZL_Keywords_Hits]  DEFAULT (0),
[LastUseTime] [datetime] NOT NULL CONSTRAINT [DF_ZL_Keywords_LastUseTime]  DEFAULT (getdate()),
[ArrGeneralID] [ntext] NULL,
[QuoteTimes] [int] NULL,
CONSTRAINT [PK_ZL_Keywords] PRIMARY KEY CLUSTERED
([KeywordID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

--注意:将清空全表数据

detele from ZL_Keywords

--注意:将删除整个表

drop table ZL_Keywords

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

TRUNCATE table ZL_Keywords