access ÖеÄdatetime×Ö¶ÎÔõÑùµÃµ½2010-01-20
string strDatefrom="2010-01-20";
string strDateTo="2010-01-21";
where FormatDateTime(updatetime,0) between #" + strDatefrom + "# and #" + strDateTo + "#
ÎÒÏë°Ñupdatetime ÖеÄÈÕÆÚ 2010-1-20 14:11:39 ±äΪ 2010-01-20
SELECT format([datefiled],'yyyy-mm-dd')
from yourtable;
´ÓÂß¼ÉÏÀ´Ëµ£¬ÄãµÄÕâ¸ö²»ÐèҪת¡£
Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'updatetime!=null and format([updatetime],'yyyy-mm-dd') between #2010-01-20# and #2010-01-21#' ÖС£
where updatetime!=null and updatetime >=#" + Convert.ToDateTime(strDatefrom) + "# and updatetime <=#" + Convert.ToDateTime(strDateTo) + "#
Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'updatetime!=null and updatetime >=#2010-1-18 0:00:00# and updatetime <=#2010-1-21 0:00:00#' ÖС£
ÓôÃÆ
C# code:
sql = "select id ,type,product_type,product_type2 from M_product where updatetime!=null and updatetime >=" + Convert.ToDateTime(strDatefrom) + " and updatetime <=" + Convert.ToDateTime(strDateTo) + " ";
Óï·¨´íÎó (²Ù×÷·û¶ªÊ§) ÔÚ²éѯ±í´ïʽ 'updatetime!=null and updatetime >=
Ïà¹ØÎÊ´ð£º
ÎÒ½«Ò»¶Î4000À´×ÖµÄÎı¾¸³Öµ¸øËüÔõô¾Í³ö´íÁË,ÌáʾÔËÐÐʱ´íÎó2176 Õâ¸öÊôÐÔµÄÉèÖÃֵ̫³¤?
ÄãÊÇÔõÑù¸³ÖµµÄ£¿
²âÊÔÁËһϣ¬Óñ¸×¢×ֶθøÎı¾¿ò×öÊý¾ÝÔ´£¬Ã»ÓÐÌáʾÉèÖÃֵ̫³¤,14893×Ö·û
ÒýÓÃÎÒ½«Ò»¶Î4000À´×ÖµÄÎ ......
×î½üѧϰasp£¬µ±Á·Ï°µ½Á¬½ÓÊý¾Ý¿âµÄʱºò£¬ÆµÆµ³ö´í£¬¿É¾ÍÊDz»ÖªµÀ´íÔÚÔõôµØ·½£¬Çë¸ßÊÖ°ïæ¿´¿´£¡£¡Ð»Ð»£¡
°üº¬Îļþxx.asp¡¢xxsave.asp¡¢conn.aspÒÔ¼°student1.mdbºÍ±íxxgl¡¡
xx.aspΪ£º
<html>
<hea ......
µÚÒ»´Î½Ó´¥CrystalReport
¼±Ñ°ÕÒVb.net Access ͨ¹ý²éѯ³öµÄÊý¾ÝÊä³öµ½CrystalReportµÄÀý×Ó.
ÓеÄÅóÓÑÂé·³·¢À´Ñ§Ï°.¶àл!
¸úÄãµÄÒªÇó²î²»¶à£¬²Î¿¼Ò»Ï£º
http://topic.csdn.net/u/20090823/21/87af02d3-f4ca-480 ......
Çë´ó¼Ò°ï棬ÎÒÏëÔÚAccess´°ÌåÀïÃæÏÔʾ±íºó£¬Ñ¡Ôñ±íÖеÄij¸ö×ֶΣ¬¾Í¿ÉÒÔ¸ù¾ÝÑ¡ÔñµÄÕâЩµ¥Ôª¸ñÇóºÍ¡¢Ç󯽾ù£¬¾ÍÈçExcelÓÒϽÇ״̬À¸ÄÇÑù£¬ºÜ·½±ãµÄͳ¼ÆÇóºÍÇ󯽾ù£¬Ð»Ð»£¡
Äã¿ÉÒÔÓÃÒ»¸ögridview »òÕ߯äËûʲô¿Ø¼þ ¶ ......