摘要:        
需求:需要统计网站的访问量,具体是哪个用户的ip访问该网站,并统计从哪个连接访问该网站。提示。先按userIP分组,再按时间排序,最后编号。代码如下:View Code 1selectrow_number()over(partitionbyUserIporderbyinsertTime),*fromuseraccess    阅读全文
        
            posted @ 2011-08-29 19:56
wtq
阅读(871)
评论(1)
推荐(0)
        
            
        
        
摘要:        
1,使用identity(int,1,1)来产生行号,必须把数据插入到一张表中。2,如图: 3,代码如下:View Code 1selectrowid=identity(int,1,1),useripintotempTfromuseraccess2select*fromtempT参考:http://blog.sina.com.cn/s/blog_5f92e8c50100kfnp.html    阅读全文
        
            posted @ 2011-08-29 19:37
wtq
阅读(9804)
评论(1)
推荐(0)
        
 
                    
                     
                    
                 
                    
                 
 
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号