序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | UserID | int | 4 | 0 | 是 | 发表评论的用户ID | ||||
3 | IP | varchar | 500 | 0 | 是 | 访问者IP | ||||
4 | OSVersion | nvarchar | 500 | 0 | 是 | 操作系统 | ||||
5 | Device | nvarchar | 500 | 0 | 是 | 设备 | ||||
6 | Remind | nvarchar | 500 | 0 | 是 | 备注 | ||||
7 | BrowerVersion | nvarchar | 500 | 0 | 是 | 浏览器版本 | ||||
8 | Source | nvarchar | 500 | 0 | 是 | 访问源 | ||||
9 | Address | nvarchar | 500 | 0 | 是 | 访问者地区 | ||||
10 | DVisitNum | int | 4 | 0 | 是 | 浏览量 | ||||
11 | CDate | datetime | 8 | 3 | 是 | 时间 | ||||
12 | ZType | nvarchar | 100 | 0 | 是 | |||||
13 | InfoID | nvarchar | 200 | 0 | 是 | 内容ID | ||||
14 | InfoTitle | nvarchar | 200 | 0 | 是 | 内容标题 |
访问统计表
GO
CREATE TABLE [dbo].[ZL_Com_VisitCount](
[ID] [int] IDENTITY(1,1) NOT NULL,
[UserID] [int] NULL,
[IP] [varchar](500) NULL,
[OSVersion] [nvarchar](500) NULL,
[Device] [nvarchar](500) NULL,
[Remind] [nvarchar](500) NULL,
[BrowerVersion] [nvarchar](500) NULL,
[Source] [nvarchar](500) NULL,
[Address] [nvarchar](500) NULL,
[DVisitNum] [int] NULL,
[CDate] [datetime] NULL,
[ZType] [nvarchar](100) NULL,
[InfoID] [nvarchar](200) NULL,
[InfoTitle] [nvarchar](200) NULL,
CONSTRAINT [PK_ZL_Com_VisitCount] 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_Com_VisitCount
drop table ZL_Com_VisitCount
TRUNCATE table ZL_Com_VisitCount