jsp²éѯµ±Ç°Ô·ݵļǼ
select * from mainTable where datediff(month,inputDate,getdate())=0
ʱ¼ä×Ö¶ÎΪinputDate
ΪʲôûÓнá¹û
ûÓÐdatediff(month,inputDate,getdate())=0µÄ¼Ç¼¾Íû½á¹ûßÂ
ÄãÏÈ¿´Ò»ÏÂdatediff(month,inputDate,getdate())µÄÖµ
select datediff(month,inputDate,getdate()) from mainTable
ÓмǼ°¡£¬
select * from mainTable where month(inputDate)='10'¾ÍÓнá¹û°¡
ÓÃÕâ¸öÊÔÊÔ
select * from mainTable where datediff(month,inputDate,CONVERT(varchar(10),getDate(),120))=0
»¹ÊÇûÓнá¹û£¬ÓôÃÆ°¡
²»ºÃÒâ˼°¡£¬ÎÒÍü˵ÊÇjsp£«accessÁË£¬
jspÀïÒ²¿ÉÒÔдjava´úÂë°¡
Ïà¹ØÎÊ´ð£º
Ò»¸öJSPÒ³Ãæ½ÓÊÕÆäËûÒ³ÃæÌá½»¹ýÀ´µÄFORM±íµ¥£¬µ«ÊÇÒªÇóÖ»½ÓÊÕµ±Ç°Õ¾µã¼°Æä×ÓÕ¾µãÌá½»¹ýÀ´µÄFORM±íµ¥£¬ÆäËûÕ¾µãÌá½»¹ýÀ´µÄ±íµ¥²»½ÓÊÕ£¬Õâ¸öÔõôÉèÖã¿
ÓùýÂËÆ÷
filter
½«µ±Ç°Õ¾µã¼°Æä×ÓÕ¾µã·ÅÒ»¸öĿ¼
È» ......
ÎÒJSPµÄÒ³ÃæÊÇ£º
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
´ó¼ÒºÃ£¬ÎÒÔÚJSPµÄ³õѧÕߣ¬ÔÚ±à³ÌÖÐÓöµ½ÁËÒ»¸öÎÊÌ⣺
<jsp:useBean id="accountBiz" class="bank.AccountBiz"
scope="application">
Õâ¸ö±êÇ©ÖÐapplicationºÍsessi ......
ÎÊÌâ: ÏÖÔÚÌá½»Ö®ºó¾Í²»ÄÜÌøµ½ajax.jsÖÐÖ¸¶¨µÄservlet
¶øÊÇÓÖÖØнøÈëµ½ÁËpub_hotel_t.jspÒ³Ãæ. Ò²¾ÍÊÇûÓÐÖ´Ðе½ajaxÀïÃæÈ¥ ´ó¼Ò°ïæ¿´¿´ÊÇʲôÔÒò°É.
ÊDz»ÊǺÍÌá½»µÄ°´Å¦ÓйØÄ ......
¸÷λ´óÏÀ£¬Ð¡µÜæå¶Û£¬ÇëÈÏÕæ»Ø´ð£¡Ð»Ð»
ÓÐÁ½¸öÏÂÀÑ¡Ôñ¿ò£¬µÚÒ»¸öÑ¡Ôñ´óÀ࣬µÚ¶þ¸öÑ¡ÔñСÀ࣬Á½¸öÏÂÀÑ¡Ôñ¿òµÄÑ¡ÏîÈ«¶¼´ÓÊý¾Ý¿â²é³öÀ´¡£ÄÇôÔÚµÚÒ»¸öÑ¡Ôñ¿ò×ö³öÑ¡ÔñºóÈçºÎ°ÑÑ¡ÔñµÄÖµ´«¸øµÚ¶þ¸öÑ¡Ôñ¿òºÃÈõڶþ¸öÑ¡Ôñ ......