表名:ZL_Special












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1SpecIDint40  主键ID
2SpecNamenvarchar500    专题名称
3SpecDirnvarchar500    专题目录
4SpecDescnvarchar2550    专题说明
5OpenTypebit10   0打开方式
6SpecCateint40    所属专题类别
7ListFileExtint40    扩展名
8ListTemplatenvarchar2550    列表页模板
9ListFileRuleint40   0列表页文件名规则
10SpecDescriptivenvarchar2550    描述
11SpecKeywordnvarchar2550    关键字
12SpecPicUrlnvarchar2550    专题图片
13SpecTipsnvarchar2550    专题提示
14Pidint40    父专题ID
15CDatedatetime83     
16CUsernvarchar2550     
17EditDatedatetime83    编辑时间
18OrderIDint40     

简要说明:

专题表

GO
CREATE TABLE [dbo].[ZL_Special](
[SpecID] [int] IDENTITY(1,1) NOT NULL,
[SpecName] [nvarchar](50) NOT NULL,
[SpecDir] [nvarchar](50) NOT NULL,
[SpecDesc] [nvarchar](255) NULL,
[OpenType] [bit] NULL CONSTRAINT [DF_ZL_Special_OpenType]  DEFAULT (0),
[SpecCate] [int] NOT NULL,
[ListFileExt] [int] NULL,
[ListTemplate] [nvarchar](255) NULL,
[ListFileRule] [int] NULL CONSTRAINT [DF_ZL_Special_ListFileRule]  DEFAULT (0),
[SpecDescriptive] [nvarchar] (255) NOT NULL,
[SpecKeyword] [nvarchar] (255) NOT NULL,
[SpecPicUrl] [nvarchar] (255) NOT NULL,
[SpecTips] [nvarchar] (255) NOT NULL,
[Pid] [int] NOT NULL,
[CDate] [datetime] NULL,
[CUser] [nvarchar](255) NULL,
[EditDate] [datetime] NULL,
[OrderID] [int] NULL,
CONSTRAINT [PK_ZL_Special] PRIMARY KEY CLUSTERED
(
[SpecID] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]

GO
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专题名称' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecName'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专题目录' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecDir'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专题说明' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecDesc'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'打开方式' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'OpenType'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'所属专题类别' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecCate'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'扩展名' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'ListFileExt'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'列表页模板' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'ListTemplate'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'列表页文件名规则' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'ListFileRule'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'描述' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecDescriptive'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'关键字' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecKeyword'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专题图片' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecPicUrl'
EXEC sys.sp_addextendedproperty @name=N'MS_Description', @value=N'专题提示' ,@level0type=N'SCHEMA', @level0name=N'dbo', @level1type=N'TABLE', @level1name=N'ZL_Special', @level2type=N'COLUMN', @level2name=N'SpecTips'


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

detele from ZL_Special

--注意:将删除整个表

drop table ZL_Special

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

TRUNCATE table ZL_Special