Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

aspÖÐaccess¶à±í²éѯµÄÎÊÌâ¼±£¡

ÎÒÏëÔÚaspÖУ¬ÊµÏÖ°Ñ£¬±í1,±í2£¬±í3£¬Öеö×ֶΣ¬²éѯ³öÀ´£¬¾ÍÊÇÈý¸ö±íÁªºÏ²éѯ£¨ÎÒÓõÄʱºòÁ½¸ö±íÁªºÏ²éѯûÓÐÎÊÌ⣬µ«ÊǾÍÊDz»ÄÜÈý¸ö±íÁªºÏ²éѯ£©£¬
ÆäÖУ¬±í2µÄ£¬mainid,×ֶκͱí1µÄid×Ö¶ÎÏà¹Ø£¬±í2µÄid×ֶκͱíÈýµÄclassidÏà¹Ø,ÔÚaspÖÐÓ¦¸ÃÈçºÎдÓï¾äÀ´ÊµÏÖ£¡Çë¸ßÊֻشð£¡
ÎÒдµÄÊÇ
select * from 2left join 3 on 2.id=3.classid inner join 1 on 2.mainid=1.id
µ«ÊDz»ÐУ¬
¶øÎÒÔÚaccessÖÐÓÃselect * from 2left join 3 on 2.id=3.classid
ºÍselect * from 2inner join 1 on 2.mainid=1.id
¶¼ÊÇ¿ÉÒԵģ¡Ð´ÔÚaspÖÐÒ²¿ÉÒ԰Ѹ÷×ÔµÄÄÚÈÝÔÚaspÒ³ÃæÖÐÏÔʾ³öÀ´£¬µ«ÊDz»ÄÜͬʱ ÏÔʾÈý¸ö±íµÄÄÚÈÝ£¡

ÎÒÒ²ÊÔ¹ý°Ñ*±ä³É±íÃû.ÏàÓ¦×ֶΣ¬»¹²»ÐУ¡

SELECT a.id, b.id AS bid, c.classid from ±í1 a JOIN ±í2 b ON a.id=b.mainid JOIN ±í3 c ON b.id=c.classid



ллyoungsheep

access sql²éѯÊÓͼÖл¹ÊDz»ÄÜÓã¬ÎÒÒ»²éѯ£¬µ¯³ö£¬²»Ö§³ÖÁ¬½Ó±í´ïʽ

²»ÖªµÀдÔÚaspÖÐÄܲ»ÄÜÓ𡣬ÎÒÊÔһϠȥ

hookee,£±£²£³£¬¼´ÊDZíÃû£¬Õâ¸öºÍÎÒдµÄÒ»Ñù°É

ÊDz»ÊÇÒòΪ select * µÄÎÊÌâ£¬ÖØÃû×Ö¶ÎÎÞ·¨Çø·Ö£¿

ÎÒÒªÏÔʾµÄ¼¸¸ö×Ö¶ÎÖÐûÓÐÖØÃûµÄ¡£

лл°¡£¬
ÓÃÕâ¸ö·½·¨£¬³öÀ´¡¡ÁË£¬select * from (2 left join 3 on 2.id=3.classid) inner join 1 on 2.mainid=1.id
ÎÒÓÖ°Ñleft join ±ä³ÉÄÚÁ¬½Ó¾ÍÐÐÁË

ÒýÓÃ
SELECT a.id, b.id AS bid, c.classid from ±í1 a JOIN ±í2 b ON a.id=b.mainid JOIN ±í3 c ON b.id=c.classid


±È½ÏÍêÃÀ

ºÇºÇ£¬ÎÒÒ²ÊÇÀ´Ñ§Ï°µÄ


Ïà¹ØÎÊ´ð£º

ASP¼òµ¥ÎÊÌâ

conn.asp

<%
Set Conn=Server.CreateObject("ADODB.Connection")
Conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0; Data Source="&server.MapPath("Connt ......

ASP網頁ÖÐÈ¡µÃµÇ陸µÄÓÃ戶Ãû

ÎÒµÄ網頁´ú碼為ASP語ÑÔ,驗證·½Ê½為ϵ統×Ô帶µÄWINDOW驗證ģʽ.

現ÔÚÎÒÈç¹ûÒªÔÚASP´ú碼ÖÐ獲È¡當ǰµÄµÇÈëÈË ......

aspºǫ́µÇ½ÎÊÌâ

ÎÒ°ïѧУ×öÁËÒ»¸öÕ¾£®

ÔÚÐ£Ô°ÍøµÄÇé¿öÏ£¬Äܹ»µÇ½³É¹¦£¬ºǫ́ÕʺŶ¼ÄÜͨ¹ý£¬½øÈëºǫ́

µ«ÊÇÔÚÍâÍø£Á£ÄµÄÇé¿öÏ£¬Äܹ»µÇ½ºǫ́µÄÒ³Ãæ£¬Ò³ÃæÊÇ£Á£Ó£ÐÎļþ£®
µ«ÊÇÊäÈëÕʺźÍÃÜÂëµÄʱºò£¬ÍøÒ³ÔËÐкܾö¼ ......

³õʶasp,Çë¸ßÊÖÖ¸½Ì

ÎÒÏëÓÃaspд¸öÒ³ÃæÒÔǰûÓнӴ¥¹ý£¬ÎÒ¿´ÍøÉÏ˵aspµÄÔËÐл·¾³Ö»ÄÜÊÇwindows£¬»¹±ØÐëҪװIIS¡£
Çë½Ì¸÷λ¸ßÊÖ£¬asp»¹ÓÐÆäËûµÄÔËÐл·¾³Âð?
²î²»¶à¾ÍÕâЩÁË£¬¾ÍÊÇIISÒ»¶¨Òª×°ºÃ
»¹ÓÐÒªÊÇÓÃVS2005µÄ»°ºÃÏñ¿ÉÒÔÖ±½ÓÔ ......

ÈçºÎÖÆ×÷aspÊÔÓðæ?

Ò»¶Îʱ¼äºó ¾Í²»ÄÜÓõÄÄÇÖÖ

¿ÉÒÔÓÃ×é¼þдÂð?
×é¼þ  ÊDz»ÊDZØÐëÏÈÔÚ·þÎñÆ÷°²×°  ²ÅÄÜʹÓÃ?

ÄÇÓÃÐéÄâÖ÷»úµÄ  ²»¾ÍûϷÁË....

ewebeditor¾ÍÊÇҪע²á²ÅÄÜÓõĠ
Ã²ËÆÊÇûɶÓõ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ