ÔõÑù´ÓaccessÖÐËæ»úÈ¡³öͼƬ×ö³Éflash»ÃµÆƬ£¿
±ípic
×ֶΠid,picintro,picpath
picintroΪͼƬ±êÌâ
picpathΪͼƬ·¾¶
ÎÒÏë´Ó±ípicÖÐËæ»úÈ¡³ö5ÕÅͼƬ×ö³Éflash»ÃµÆƬ£¬ÔõÑùдÄØ£¿
¶øÇÒҪÿ´Îˢж¼²»Í¬
ÒòΪSELECT top 5 * from pic Order by rnd(id)ËùÑ¡µÄͼƬˢÐÂÒÔºó»¹ÊÇÄÇЩ
ÕâÑù°É ÏȼÆËã³öÓжàÉÙ¼¸¸ö¼Ç¼
select count(*) form table
È»ºóÓÃasp¼ÆËã³öËæ»úÊý×Ö
È»ºórs.move µ½Õâ¸öËæ¼´Êý Èç¹ûµ½µ×ÁË¾Í rs.movefirst Ö±µ½È¡³ö5Ìõ¼Ç¼Ϊֹ
access
ÓÃÏÂÃæµÄÐÞ¸ÄÐÞ¸Ä
dim tmpSQL,V_ID,intRandomNumber
Randomize()
intRandomNumber=Int(1000*Rnd)+1
tmpSQL="select top 1 a_id from db_article where a_isgood=1 order by Rnd("&-1*(intRandomNumber)&"*a_id)"
Ïà¹ØÎÊ´ð£º
ÎÒÓÃAccessÊý¾Ý¿â×öÁËÒ»¸öͼÊéÊý¾Ý¿â£¬ÀïÃæÓÐÒ»¸ö×Ö¶ÎÊÇISBN£¬¾ÍÊÇISBNºÅ£¬µ«ÊÇÖ»µÄÒ»×Ü·ÖͼÊéдµÄISBNºÅ£¬ÓеÄûд£¬Ð´µÄÄÇÒ»²¿·ÖÓеÄISBNÊÇÖظ´µÄ£¬ÄÜ·ñÓÃSQLÓïÑÔ°ÑÖظ´µÄ¹ýÂ˵ô£¬µ«Ã»Ð´ISBNºÅµÄͼÊé²»ÄܹýÂ˵ô£¬È ......
ÕâÁ½Ììѧϰ¡¶Delphi¼¼Êõ·½°¸±¦µä¡·Ò»ÊéÖеÚÈýÕ¹ØÓÚÓû§µÇ¼·½°¸µÄÀý×Ó£¬ÀûÓõÄÊÇSQl ServerÊý¾Ý¿âʵÏÖÓû§µÇ¼£¬±àÒëÔËÐж¼Ã»ÎÊÌ⣬¸ÃʵÏֵŦÄÜÒ²¶¼ÊµÏֵĺܺ㬵«ÊÇÆæ¹ÖµÄÊÇ£¬·´¸´ÔËÐÐÒ»¶Îʱ¼äºó£¬ÓÐʱÔڹرÕÕû¸ö ......
ÎÒÔÚCBÁ·´´½¨ACCESSÎļþ£¬
²ÉÓõÄÏÂÁдúÂë,ÎÒרÃÅÏÈ×ö¸öС³ÌÐò²âÊÔ£¬Ò»ÇÐÕý³£¡£
È»ºóÔÚ¼ÓÔص½1¸öÈí¼þÖУ¬
´«ÈëµÄ±äÁ¿MDB_PathNameÒ²ÊÇÕýÈ·µÄ¡£
µ«ÔÚÖ´ÐÐ
mdb.OleFunction("Create", ......
CREATE TABLE Product(model integer,
maker varchar(20),
CONSTRAINT SAND PRIMARY KEY (model),
CONSTRAINT PANDA FOREIGN KEY (model) REFERENCES PC (model)
ON DELETE CASCADE ......
ÎÒ½«Ò»¶Î4000À´×ÖµÄÎı¾¸³Öµ¸øËüÔõô¾Í³ö´íÁË,ÌáʾÔËÐÐʱ´íÎó2176 Õâ¸öÊôÐÔµÄÉèÖÃֵ̫³¤?
ÄãÊÇÔõÑù¸³ÖµµÄ£¿
²âÊÔÁËһϣ¬Óñ¸×¢×ֶθøÎı¾¿ò×öÊý¾ÝÔ´£¬Ã»ÓÐÌáʾÉèÖÃֵ̫³¤,14893×Ö·û
ÒýÓÃÎÒ½«Ò»¶Î4000À´×ÖµÄÎ ......