表名:ZL_Content_FileBuy












序号列名数据类型长度小数位标识主键外键允许空默认值说明
1IDint40   
2Gidint40    所属内容ID
3Ranstrnvarchar2000    随机码,用于标识文件
4FNamenvarchar2000    文件名
5Urlnvarchar2000    下载链接
6UserIDint40    下载链接
7UserNamenvarchar500    上传用户名
8BuyPricenvarchar2000    购买价格
9IsMainint40    是否主文件
10Fieldnvarchar1000    字段列表
11CDatedatetime83    创建时间
12EndDatedatetime83    文件到期时间

简要说明:

文件内容表

GO
CREATE TABLE [dbo].[ZL_Content_FileBuy](
[ID] [int] IDENTITY(1,1) NOT NULL,
[Gid] [int] NULL,
[Ranstr] [nvarchar](200) NULL,
[FName] [nvarchar](200) NULL,
[Url] [nvarchar](200) NULL,
[UserID] [int] NULL,
[UserName] [nvarchar](50) NULL,
[BuyPrice] [nvarchar](200) NULL,
[IsMain] [int] NULL,
[Field] [nvarchar](100) NULL,
[CDate] [datetime] NULL,
[EndDate] [datetime] NULL,
CONSTRAINT [PK_ZL_Content_FileBuy] PRIMARY KEY CLUSTERED
(
[ID] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

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

detele from ZL_Content_FileBuy

--注意:将删除整个表

drop table ZL_Content_FileBuy

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

TRUNCATE table ZL_Content_FileBuy