目的是统计各单位每个月的文章发表数量:
其中:adddate 为 文章发表的时间。
但是,下面这样却取不到数据。请各位帮忙
dim localmonth
localmonth=cdate(year(date())&"-"&month(date())&"-1")
sqlstr1 = "SELECT count(*) AS count,[user] FROM news WHERE [user] <> '' and Ok =-1 and adddate > #localmonth# GROUP BY [user] ORDER BY count(*) DESC "