ASP 按时间范围显示记录问题求救
ASP 按时间范围显示记录问题求救 VBScript code: select count(sou_kh) as cc,sou_kh from newsource where sou_date>='2009-08-01' and sou_date<='2009-08-31' and sou_kh<>'' group by sou_kh order by sou_kh asc 我这里这样写设置了。开始时间 和结束时问。按理应该是只有符合这个时间范围内的记录才会显示,可是我运行了后。出现的是所有的记录。限制时间没有起到作用 数据库是 sql server 2000
up,帮顶下 我这边也是sql server2000,测试了下没你这问题嘛。。 是啊。在ASP 里面有嘞。 如果sou_date是日期时间型,建议使用datediff函数,比如: SQL code: select count(sou_kh) as cc,sou_kh from newsource where datediff(day,'2009-08-01',sou_date)>=0 and datediff(day,'2009-08-31',sou_date)<=0 and sou_kh<>'' group by sou_kh order by sou_kh asc引用 如果sou_date是日期时间型,建议使用datediff函数,比如: SQL codeselectcount(sou_kh)as cc,sou_khfrom newsourcewheredatediff(day,'2009-08-01',sou_date)>=0anddatediff(day,'2009-08-31',sou_date) <=0and sou_kh <>''groupby sou_khorderby sou_khasc 这样写确实比之前写的。快了不少。但是。问题依旧。我在ASP里面显示
相关问答:
<%@language="vbscript"%> <%option explicit%> <html> <head> <title>xxx </title> </head> <script language=vbs> '注意变量 ......
<form id="form1" runat="server"> <div> <script type="text/javascript"> function oo(a){ document.getEleme ......
文件:folder.inc HTML code: <% Dim folderini,pos,pageName fPath = Request.ServerVariables("PATH_TRANSLATED") pos = instrRev(fPath,"\") folderini = Left(fPath,pos)+&qu ......
asp缓存技术? 就是 把数据存到Application对象里吗 ??? 看了一些asp缓存的方法,一般都是利用application的,不行的话就用asp.net来坐吧 Application - 全局缓存 Session - 局部缓存 然后还有文件缓存 ......
<script language="javascript"> function calc(){ document.forms[0].sy.value = document.forms[0].kc.value - document.forms[0].xs.value; } </script> <form nam ......