序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | SpecID | int | 4 | 0 | 是 | 是 | 否 | 主键ID | ||
2 | SpecName | nvarchar | 50 | 0 | 否 | 专题名称 | ||||
3 | SpecDir | nvarchar | 50 | 0 | 否 | 专题目录 | ||||
4 | SpecDesc | nvarchar | 255 | 0 | 是 | 专题说明 | ||||
5 | OpenType | bit | 1 | 0 | 是 | 0 | 打开方式 | |||
6 | SpecCate | int | 4 | 0 | 否 | 所属专题类别 | ||||
7 | ListFileExt | int | 4 | 0 | 是 | 扩展名 | ||||
8 | ListTemplate | nvarchar | 255 | 0 | 是 | 列表页模板 | ||||
9 | ListFileRule | int | 4 | 0 | 是 | 0 | 列表页文件名规则 | |||
10 | SpecDescriptive | nvarchar | 255 | 0 | 否 | 描述 | ||||
11 | SpecKeyword | nvarchar | 255 | 0 | 否 | 关键字 | ||||
12 | SpecPicUrl | nvarchar | 255 | 0 | 否 | 专题图片 | ||||
13 | SpecTips | nvarchar | 255 | 0 | 否 | 专题提示 | ||||
14 | Pid | int | 4 | 0 | 否 | 父专题ID | ||||
15 | CDate | datetime | 8 | 3 | 是 | |||||
16 | CUser | nvarchar | 255 | 0 | 是 | |||||
17 | EditDate | datetime | 8 | 3 | 是 | 编辑时间 | ||||
18 | OrderID | int | 4 | 0 | 是 |
专题表
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
TRUNCATE table ZL_Special