表名:ZL_Content_Publish












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40    
2ImgPathnvarchar3000    图片虚拟路径
3Jsonnvarchar40000     
4Titlenvarchar2000    版面名:第A02版:要闻
5CUserint40     
6CDatedatetime83     
7Pidint40    id为0则为报纸,否则为版面
8NewsNamenvarchar2000    报纸名
9AttachFilenvarchar10000    存储PDF,Zip等高清报纸文件
10Nidint40    节点id

简要说明:

报纸/版面表

GO
CREATE TABLE [dbo].[ZL_Content_Publish](
[ID] [int] IDENTITY(1,1) NOT NULL,
[ImgPath] [nvarchar](300) NULL,
[Json] [nvarchar](4000) NULL,
[Title] [nvarchar](200) NULL,
[CUser] [int] NULL,
[CDate] [datetime] NULL,
[Pid] [int] NULL,
[NewsName] [nvarchar](200) NULL,
[AttachFile] [nvarchar](1000) NULL,
[Nid] [int] NULL) ON [PRIMARY]

SET IDENTITY_INSERT [ZL_Content_Publish] ON
INSERT [ZL_Content_Publish] ([ID],[CUser],[CDate],[Pid],[NewsName],[Nid]) VALUES ( 1,0,N'2017/4/7 11:30:10',0,N'人民日报',1)
INSERT [ZL_Content_Publish] ([ID],[ImgPath],[Json],[Title],[CUser],[CDate],[Pid],[Nid]) VALUES ( 2,N'/UploadFiles/demo/16.jpg',N'[{"id":"版块1","gid":"","remind":"","x":"20px","y":"20px","w":"150px","h":"150px"}]',N'人民日报头版',0,N'2017/4/7 11:30:30',1,0)
SET IDENTITY_INSERT [ZL_Content_Publish] OFF

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

detele from ZL_Content_Publish

--注意:将删除整个表

drop table ZL_Content_Publish

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

TRUNCATE table ZL_Content_Publish