vbÖ´ÐÐaccess sqlÓï¾ä¹ÖÎÊÌâ
SELECT Count(*) from In_fo WHERE Reader_Time between #" + time1 + "# AND #" + time2 + "# and id=" + userid + ";
ÉÏÃæÊÇÎÒдµÄsqlÓï¾ä Reader_TimeÊÇʱ¼äÀàÐÍ idΪÊý×Ö
µ±ÎÒÓÃOleDbDataReaderÖ´ÐдËÓï¾äʱ»á³öÏÖ ¡°´Ó×Ö·û´®¡°SELECT Count(*) from In_fo ¡±µ½ÀàÐÍ¡°Double¡±µÄת»»ÎÞЧ¡£¡±
Çë¸ßÊÖÖ¸µãһϠid="+ userid +" ÈçºÎд²»»á³ö´í
SELECT Count(*) from In_fo WHERE Reader_Time between #" + time1 + "# AND #" + time2 + "# and id=" + userid + ";
userid Ó¦¸ÃҪת³É×Ö·ûÐ͵İÉ
ÎÒÒ²·¢ÏÖÁË Ð»Ð»
Ïà¹ØÎÊ´ð£º
IsSqlDataBase = 0 'Ö÷Êý¾Ý¿âÀàÐÍ(1=SQL£¬0=AC)
'===========================================================================
SqlDatabaseName = "ads365" 'Ö÷Êý¾Ý¿âÃû
S ......
ÏÖÔÚÓÐÁ½¸öÒì¹¹µÄsql serverÊý¾Ý¿â,ÎÒÏ뽫µÚÒ»¸ö±íÖеÄÊý¾Ýµ¼Èëµ½µÚ¶þ¸ö±íÖÐ,×Ô¼ºÖ¸¶¨µ¼ÈëÊý¾ÝµÄ×Ö¶Î,ÈçºÎµ¼ÈëÊý¾ÝÄØ,´ó¼ÒÌÖÂÛÒ»ÏÂ?
dts¹¤¾ß
µ¼Èëµ¼³ö¹¤¾ß.
DD
¹þ¹þ£¬¹À¼ÆÕâλÊǵØQIOU¶¼Êܲ»Á˵Ä
Ö±½ÓÐ ......
ÓÃACCESS ÓÐÕűíchanpin ÀïÃæÓÐÒ»Ïîkuchun
ÏÖÔÚÓÃÏÔʾ¿â´æСÓÚµÈÓÚ0µÄËùÓвúÆ·
ÓÃÓï¾ä SQL = "select * from chanpin where kuchun <='0' " ²»ÄÜʵÏÖ
¸ÄΪ SQL = "se ......
SELECT ×Ö¶Î1
from ±í WHERE (...) AND ×Ö¶Î1=function()
×Ö¶Î1ÓпÉÄܵÄÖµ Ϊ 0 »òÕß -1
function ·µ»Ø 0 »òÕß -1
ÕâÑùµÄËÙ¶ÈÌ«ÂýÁË Çë¸ßÊÖ°ïæ
¶¨£¡
ÎÒд³ ......