注册 登录
编程论坛 ASP技术论坛

求救~~~ASP统计文章数量问题

anranhao 发布于 2012-11-22 21:01, 337 次点击
<%If Mydb("Select Count([ID]) From ["&tbname&"_Article] Where yn=1",1)(0)>0 then%>
<font color="blue"><b><%=Mydb("Select Count([ID]) From ["&tbname&"_Article] Where yn=1",1)
(0)%></b></font>/<%end if%><font color="red"><%=Mydb("Select Count([ID]) From ["&tbname&"_Article]",1)
(0)%></font> 这个access数据库 asp网页 ID是(序号)字段 _Article是表名(表完整名是Angel_asp_Article)

这个是统计全部文章数量!!哪为大神给改个~0~统计当天文章数量的。感激不尽 DateAndTime时间的字段名


3 回复
#2
anranhao2012-11-22 21:08
1231231
#3
dzt00012012-11-22 22:28
sql = "select count([ID]) from ["&tbname&"_Article] where datediff('d',日期字段,"&date()&")=0"
#4
anranhao2012-11-23 06:07
我试试去。
1