Ò»¸öͨÓÃÊý¾Ý¿âÈÎÎñ»á½«¼Ç¼´ÓÒ»¸ö±í¹éµµµ½ÁíÒ»¸ö±í¡£Èç¹ûÄúÏ£Íû´ÓÔʼ±íÖÐɾ³ý²»±ØÒªµÄ¼Ç¼ÒÔ¼õС±íµÄ´óС£¬µ«Êǽ«À´¿ÉÄÜ»á²Î¿¼ÕâЩ¼Ç¼£¬ÄÇôÄú¿ÉÒԹ鵵¼Ç¼£¨¶ø²»ÊÇɾ³ý¼Ç¼£©¡£ÒªÔÚ Microsoft® Access Êý¾Ý¿âÖй鵵¼Ç¼£¬ÇëÓúêÀ´ÔËÐвéѯ£¬½«¼Ç¼´ÓÒ»¸ö±íÒƵ½ÁíÒ»¸ö±í¡£
×¢Òâ ÒÔϹý³ÌʹÓõÄÊÇÂÞ˹ÎÄʾÀýÊý¾Ý¿âÖеÄʾÀý¡£ÂÞ˹ÎÄʾÀýÊý¾Ý¿âµÄĬÈÏλÖÃÊÇ Program Files\Microsoft Office\Office11\Samples Îļþ¼Ð¡£Èç¹ûÄúµÄ Samples Îļþ¼ÐÖÐûÓÐ Northwind.mdb Îļþ£¬»òÕßÄúÐèÒªÓйشò¿ªÂÞ˹ÎĵÄÏêϸÐÅÏ¢£¬ÇëÔÚ Office ÖúÊÖ»ò“°ïÖú”´°¿ÚµÄ“Ó¦´ðÏòµ¼”Ñ¡ÏÖÐÊäÈë“´ò¿ªÂÞ˹ÎÄʾÀýÊý¾Ý¿â”£¬È»ºóµ¥»÷“ËÑË÷”¡£
¶¨ÆÚ½«¼Ç¼´ÓÒ»¸ö±í¹éµµµ½ÁíÒ»¸ö±í
- ʹÓÓ¸´ÖÆ”ºÍ“Õ³Ìù”ÃüÁ½«Òª¹éµµµÄ±í¸´ÖƵ½Ð±íÖС£½ö¸´Öƽṹ£¬²»¸´ÖÆÊý¾Ý¡£
ÀýÈ磬½«“²úÆ·”±íµÄ½á¹¹¸´ÖƵ½Ãû³ÆΪ“²úÆ·¹éµµ”µÄбíÖС£
- ´´½¨Ò»¸ö²éѯ£¬Ê¹Æä°üº¬“²úÆ·”±íÖÐËùÓеÄ×ֶΣ¬²¢½«¼Ç¼¸½¼Óµ½“²úÆ·¹éµµ”±íÖС£ÉèÖÃÌõ¼þÀ´Ö¸¶¨Òª¹éµµµÄ¼Ç¼µÄ×Ó¼¯¡£
ÀýÈ磬´´½¨Ò»¸öÃûΪ“²úÆ·¸½¼Ó”µÄ¸½¼Ó²éѯ£¬Í¨¹ý½«“ÖÐÖ¹”×ֶεēÌõ¼þ”µ¥Ôª¸ñÉèÖÃΪ -1£¬¾Í¿ÉÒÔ½öÏò“²úÆ·¹éµµ”±íÖи½¼ÓÖÐÖ¹µÄÌõÄ¿¡£
Ìáʾ Èç¹ûÿ´Î¹éµµµÄÌõ¼þ¶¼»á·¢Éú±ä»¯£¬ÄÇôÄú¿ÉÒÔ´´½¨Ò»¸ö´øÓÐÌáʾ²ÎÊýµÄ¸½¼Ó²éѯ£¬ÕâÑùÔÚÿ´ÎÔËÐвéѯʱ¾Í¿ÉÒÔÊäÈ벻ͬµÄÌõ¼þ¡£
- ´´½¨Ò»¸öɾ³ý²éѯ£¬´Ë²éѯµÄÌõ¼þÓë²½Öè 2 ÖÐΪ¸½¼Ó²éѯָ¶¨µÄÌõ¼þÏàͬ¡£Äú½«Ê¹Óô˲éѯ´Ó“²úÆ·”±íÖÐɾ³ýÔÚ²½Öè 2 Öи½¼ÓµÄ¼Ç¼¡£
ÀýÈ磬´´½¨Ò»¸ö“²úƷɾ³ý”ɾ³ý²éѯ£¬´Ë²éѯµÄÌõ¼þÓ듲úÆ·¸½¼Ó”¸½¼Ó²éѯËùÖ¸¶¨µÄÌõ¼þÏàͬ¡£
×¢Òâ Èç¹ûÄú´´½¨Ò»¸öÌáʾÊäÈë²ÎÊýµÄ¸½¼Ó²éѯ£¬ÄÇôÄúÓ¦¸ÃÒ²´´½¨Ò»¸öÌáʾÊäÈëÏàͬ²ÎÊýµÄɾ³ý²éѯ£¬²¢ÇÒ¶Ôÿ´ÎÔËÐвéѯ³öÏֵIJÎÊýÌáʾ£¬ÒªÈ·±£ÊäÈëÏàͬµÄÖµ¡£
- ´´½¨Ò»¸öºê£¬Ê¹ÆäÏÈÔËÐи½¼Ó²éѯ£¬È»ºóÔËÐÐɾ³ý²éѯ¡£
ÀýÈ磬´´½¨Ò»¸öÃûΪ“²úÆ·¸½¼Ó¼Ç¼”µÄºê£¬ÔÚºêµÄµÚÒ»ÐÐÓà OpenQuery ²Ù×÷À´ÔËÐи½¼Ó²éѯ£¬ÔÚºêµÄµÚ¶þÐÐÓà OpenQuery ²Ù×÷À´ÔËÐÐɾ³ý²éѯ¡£
- ÿ´ÎÄúÒª¹éµµ¼Ç¼ʱ£¬ÇëÔËÐГ²úÆ·¸½¼Ó¼Ç¼”ºê¡£
<asp:tablecell verticalalign="Top" horizontalalign="Left" width="10" runat="Server">asp:tablecell>