sql="select top 1 id,name,title,date,father,nreply,nclick from forum where father='0' and "&datediff(d,date,now())&"<10 and top=false order by nreply desc"
为了提取论坛中在10天内回复(nreply)数量最多的一个帖子,sql语句如下: sql="select top 1 id,name,title,date,father,nreply,nclick from forum where father='0' and "&datediff(d,date,now())&"<10 and top=false order by nreply desc" 但是显示出错了,错误就是在datediff()<10部分,请问那里错误了 其中date的表示的是forum
sql="select top 1 id,name,title,date,father,nreply,nclick from forum where father='0' and datediff("d",date,now())<10 and top=false order by nreply desc"
sql="select top 1 id,name,title,date,father,nreply,nclick from forum where father='0' and datediff("d",date,now())<10 and top=false order by nreply desc"
sql="select top 1 id,name,title,date,father,nreply,nclick from forum where father='0' and datediff(d,date,now())<10 and top=false order by nreply desc"