表名:ZL_Page












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Pronamenvarchar5000    企业名称
3PageTitlenvarchar5000    黄页标题
4KeyWordsnvarchar10000    关键字
5Descriptionnvarchar20000    说明
6LOGOnvarchar2550    LOGO
7Domainnvarchar5000    访问域名
8Styleint40    风格
9HeadHeightint40    导航条高度
10HeadColornvarchar2550    导航条颜色
11CommonModelIDint40    ZL_CommonModel中的ID
12TableNamenvarchar2550    模型名称
13Hitsint40    点击数
14InfoIDint40    模型内容ID
15Bestint40   0推荐级别
16Statusint40    审核状态
17UserIDint40    用户ID
18UserNamenvarchar2550    用户名
19ParentPageIDint40    上级黄页ID(上级商铺)
20ParentUserIDint40    上级用户ID
21PageInfontext160    黄页说明
22TopWordsntext160    头部自定义HTML内容
23BottonWordsntext160    底部HTML内容
24CreateTimedatetime83    创建时间
25NodeStyleint40   0节点样式
26HeadBackGroundnvarchar2550    导航背景

简要说明:

黄页信息表

GO
CREATE TABLE [dbo].[ZL_Page](
 [ID] [int] IDENTITY(1,1) NOT NULL,
 [Proname] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
 [PageTitle] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
 [KeyWords] [nvarchar](1000) COLLATE Chinese_PRC_CI_AS NULL,
 [Description] [nvarchar](2000) COLLATE Chinese_PRC_CI_AS NULL,
 [LOGO] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 [Domain] [nvarchar](500) COLLATE Chinese_PRC_CI_AS NULL,
 [Style] [int] NULL,
 [HeadHeight] [int] NULL,
 [HeadColor] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 [CommonModelID] [int] NOT NULL,
 [TableName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 [Hits] [int] NULL,
 [InfoID] [int] NOT NULL,
 [Best] [int] NULL CONSTRAINT [DF_ZL_Page_Best]  DEFAULT (0),
 [Status] [int] NULL,
 [UserID] [int] NULL,
 [UserName] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 [ParentPageID] [int] NULL,
 [ParentUserID] [int] NULL,
 [PageInfo] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
 [TopWords] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
 [BottonWords] [ntext] COLLATE Chinese_PRC_CI_AS NULL,
 [CreateTime] [datetime] NULL,
 [NodeStyle] [int] NULL CONSTRAINT [DF_ZL_Page_NodeStyle]  DEFAULT (0),
 [HeadBackGround] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,
 CONSTRAINT [PK_ZL_Page] PRIMARY KEY CLUSTERED
(
 [ID] ASC
) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'企业名称' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Proname'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'黄页标题' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'PageTitle'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'关键字' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'KeyWords'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'说明' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Description'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'LOGO' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'LOGO'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'访问域名' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Domain'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'风格' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Style'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'导航条高度' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'HeadHeight'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'导航条颜色' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'HeadColor'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'ZL_CommonModel中的ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'CommonModelID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'模型名称' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'TableName'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'点击数' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Hits'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'模型内容ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'InfoID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'推荐级别' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Best'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'审核状态' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'Status'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'用户ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'UserID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'用户名' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'UserName'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'上级黄页ID(上级商铺)' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'ParentPageID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'上级用户ID' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'ParentUserID'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'黄页说明' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'PageInfo'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'头部自定义HTML内容' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'TopWords'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'底部HTML内容' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'BottonWords'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'创建时间' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'CreateTime'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'节点样式' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'NodeStyle'
GO
EXEC dbo.sp_addextendedproperty @name=N'MS_Description', @value=N'导航背景' , @level0type=N'USER',@level0name=N'dbo', @level1type=N'TABLE',@level1name=N'ZL_Page', @level2type=N'COLUMN',@level2name=N'HeadBackGround'

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

detele from ZL_Page

--注意:将删除整个表

drop table ZL_Page

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

TRUNCATE table ZL_Page