Delphi SQL ÅúÁ¿²åÈë - Delphi / Êý¾Ý¿âÏà¹Ø
ÓÐÈý¸ö±í£º
a(ID1,Name1);
b(ID2,Name2);
c(ID1,ID2);
aÖÐID1¶ÔÓ¦µÄÊý¾ÝÓУº
a1,a2,...,am
bÖÐID2¶ÔÓ¦µÄÊý¾ÝÓУº
b1,b2,...bn
ÔÚDelphiÖÐÈçºÎд¸ßЧµãµÄÓï¾ä£¬Ê¹µÃÄܹ»½«ÏÂÃæµÄÊý¾Ý²åÈëµ½c±íÖУº
a1,b1
a1,b2
...
a1,bn
...
a2,b1
a2,b2
...
a2,bn
...
...
am,b1
am,b2
...
am,bn
ÎÒÓõÄÊÇADOQueryÁ¬½ÓÊý¾Ý¿âµÄ¡£
ÏÈÓòéѯÉú³Éa¡¢b¹ØÁªµÄ±í£¨·ûºÏÄã¸ñʽҪÇóµÄ£©£¬È»ºóÓòåÈëÓï¾ä£¬½«²éѯ½á¹û²åÈëµ½c±íÖС£
ÏÈÓòéѯÉú³Éa¡¢b¹ØÁªµÄ±í£¨·ûºÏÄã¸ñʽҪÇóµÄ£©£¬È»ºóÓòåÈëÓï¾ä£¬½«²éѯ½á¹û²åÈëµ½c±íÖС£
{{
Ïà¹ØÎÊ´ð£º
ÏÖÔÚÓÐÁ½ÕÅ±í£ºÎÄÕÂÖ÷±íA(articleId,articleTitle)£¬ÎÄÕÂÆÀÂÛ±íB(commentId,articleId,commentTitle)
ÏÖÔÚÎÒÏëʵÏÖÕâÑùµÄ¹¦ÄÜ£ºÁгöÎÄÕÂÁÐ±í£¬ÆäÖÐÿƪÎÄÕ±êÌâÏÂÃæÁгö´ËÎÄÕµÄÇ°2¸öÎÄÕÂÆÀÂÛ£¬ÇëÎÊsqlÓï¾äÔõôд°¡ ......
sqlµÄÈí¼þÔÚÄÄÀï¿ÉÒÔÏ°¡£¡ÔÚÍøÉÏÕÒÁËÂù¶à¶¼Óò»ÁË°¡
Ëæ±ã¸ãÒ»D°æ°É£¬
ѸÀ×µÚÒ»¸ö¾Í¿ÉÒÔÓÃ
2000,2005¶¼ÕâÑù
http://119.147.41.16/down?cid=0698C2D64D7D637D90A6D2482298E6717D4F15CD&t=2&fmt=-1 ......
³ÌÐòʹÓõÄÊÇOrcalÊý¾Ý¿â£¬Ï붨ÆÚ£¨Ã¿¼¾¶È£©¶ÔÊý¾Ý¿â½øÐб¸·Ý£¬Ã»É¶Í·Ð÷£¬ÇëÎÊÓ¦¸ÃÔõôŪ£¿
ÓÐʲôÌØÊâÒªÇóÂ𣬱ÈÈçҪǰ¶Ë½çÃ棿
Ò»°ãÓÃÊý¾Ý¿â×Ô´øµÄ¡°¼Æ»®ÈÎÎñ¡±ÅäÖÃһϾ͹»ÁË
ûÓÐʲôÌØÊâÒªÇó¡£ÀýÈ磬ֻҪµ ......
ÎÒÏë²éѯ³öÿÌìÊý¾ÝµÄ×î´óµÄÒ»¸öÖµ¡£±íµÄ¸ñʽÈçÏÂ
±íÃû: hisdata
×ֶΠ±àºÅ Öµ ״̬ ʱ¼ä
Id value state dattime
101 32.3 0 ......