首先创建数据表IP地址,访问时间和访问次数。如果每访问一次就插入一条记录,那么AccessCount可以不要,查询时使用count就可以了,这样当访问量很大的时候会对数据库......
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
Create table Counter ( CounterID int identity(1,1) not null, IP varchar(20), AccessDateTime datetime, AccessCount int )
该表在这儿只是演示使用,所以只提供了最基本的字段
现在往表中插入几条记录
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
insert into Counter select
2/14 首页 上一页 1 2 3 4 5 6 下一页 尾页 |