序号 | 列名 | 数据类型 | 长度 | 小数位 | 标识 | 主键 | 外键 | 允许空 | 默认值 | 说明 |
1 | ID | int | 4 | 0 | 是 | 是 | 否 | |||
2 | GID | int | 4 | 0 | 否 | 内容模型ID | ||||
3 | Uid | int | 4 | 0 | 是 | 用户ID | ||||
4 | UpdateTime | datetime | 8 | 3 | 否 | 更新时间 | ||||
5 | Ip | nvarchar | 50 | 0 | 是 | IP地址 | ||||
6 | status | int | 4 | 0 | 是 | 状态 |
点击数与访问信息表
GO
CREATE TABLE [dbo].[ZL_Hits](
[ID] [int] IDENTITY(1,1) NOT NULL,
[GID] [int] NOT NULL,
[Uid] [int] NULL,
[UpdateTime] [datetime] NOT NULL,
[Ip] [nvarchar](50) NULL,
[status] [int] NULL,
CONSTRAINT [PK_ZL_Hits] 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_Hits
drop table ZL_Hits
TRUNCATE table ZL_Hits