SQL高手帮我看下 这个那点有总是

来源:百度知道 编辑:UC知道 时间:2024/06/23 17:43:37
sql12="select count(fid) as IPcount from (select * form fcount where ftime = #"&date()&"#) group by fip"

提示信息
Microsoft OLE DB Provider for ODBC Drivers 错误 '80040e14'

[Microsoft][ODBC Microsoft Access Driver] 语法错误 (操作符丢失) 在查询表达式 '* form fcount where ftime = #2009-1-31#' 中。

/counts/index.asp,行 21

我的意思是要查询当天的IP数量 要IP不重复统计
本人在线等 急啊

form拼错了,是from
这种问题旁观者清,自己找不出的

至于要IP不重复统计
select count(distinct fid) as IPcount from (select * from fcount where ftime = #"&date()&"#) group by fip

使用Distinct可以取出不重复的记录
select distinct * form fcount where ftime = #"&date()&"#

在count一下就ok了

前面两位已经说了,我就不重复了