vc²Ù×÷mssqlһСÎÊÌâ
ÏÖÔÚÁ¬µÄÒ»Ô¶³Ìmssql£¬Ã¿´Î²éѯ±È½ÏÂý£¬ÏÖÔÚÏëһϰÑËùÓмǼ²éѯ³öÀ´ÓÃÊý¾Ý¼¯±£´æÆðÀ´£¬È»ºóÕë¶ÔÊý¾Ý¼¯Ôٴβéѯɸѡ¡£ ÏÖÔÚÎÊÏÂÄǸöÊý¾Ý¼¯ÈçºÎ±£´æ²éѯ¼Ç¼£¬¶øÔٴβéѯ£¬¶àлÁË¡£
¿ÉÒÔ°ÑÊý¾Ý¼¯ÖеÄÊý¾Ý·Åµ½ÄÚ´æÖУ¬×Ô¼ºÎ¬»¤Ò»¸öÁ´±íListʲôµÄ£¬È»ºóÔÙÔÚÕâ¸öListÖвéѯ£¬½øÐжþ´Îɸѡ ¿ÉÒÔ±£´æµ½recordsetô£¬È»ºóÔÙɸѡÒýÓà ¿ÉÒÔŪ¸ö±éÀúRecordSetÖеÄÿÐмǼ£¬¸÷¸ö×ֶηŵ½Ò»¸ö½á¹¹ÌåÖУ¬½á¹¹Ìå´æ·Åµ½VectorÀïÃæ ±ÈÈçÄãµÄ±íÓÐ2¸öÁÐ,idºÍname struct strData { string id; string name; } vector <x> myVector; strData z; z.id=RecordSetÀïÃæÈ¡µ½µÄid z.name=RecordSetÀïÃæÈ¡µ½µÄname myVector.add(z); - - ÕâÑùÊÇ¿ÉÒÔ£¬µ«ºÃÏñ²»ÊÇÄÇô»ØÊ£¬ÎÒÄDZí²é³öÀ´¿ÉÄÜÓм¸Ê®ÍòÌõ¼Ç¼¡£ ÎÊÏ¿ÉÒÔµÚÒ»´Î²é³öRecordSet£¬È»ºóÔÙÔÚRecordSetÖвéÕâÑùÓï·¨ÓÐô£¬¶àлÁË¡£ Èç¹ûÖ±½Óͨ¹ýSQL²éѯ»¹±È½ÏÂý£¬ÄÇôÔص½ÄÚ´æÀïÔÙÈ¥¹ýÂË»á¸üÂý£¬²¢ÇÒÕ¼Óøü´óµÄ×ÊÔ´¡£ ×îÀíÏëµÄ×ö·¨»¹ÊÇÔÚÊý¾Ý¿âÀï°Ñ²éѯµÄ½á¹ûÕÒµ½¡£ £¨1£©ÖØÐÂÉè¼ÆÒµÎñÂß¼£¬ÓÅ»¯²éѯÓï¾ä £¨2£©Ê¹Óô洢¹ý³Ì£¬ ÒýÓà Èç¹ûÖ±½Óͨ¹ýSQL²éѯ»¹±È½ÏÂý£¬ÄÇôÔص½ÄÚ´æÀïÔÙÈ¥¹ýÂË»á¸üÂý£¬²¢ÇÒÕ¼Óøü´óµÄ×ÊÔ´¡£ ×îÀíÏëµÄ×ö·¨»¹ÊÇÔÚÊý¾Ý¿âÀï°Ñ²éѯµÄ½á¹ûÕÒµ½¡£ £¨1£©ÖØÐÂÉè¼ÆÒµÎñÂß¼£¬ÓÅ»¯²éѯÓï¾ä £¨2£©Ê¹Óô洢¹ý³Ì£¬ Ö÷ÒªÊÇÔ¶³ÌµÄÊý¾Ý¿â·þÎñÆ÷£¬¸ß·åµÄʱºò·ÃÎʱȽÏÂù£¬ÔçÉϺܿ죬·ÃÎʲÅ30Ã룬ÖÐÎç¿ÉÄܾÍÒª10·ÖÖÓÁË£¬SQLÓï¾ä¶¼ÊǺܼòµ¥µÄ£¬Ã»Ê²Ã´ÓÅ»¯ÁË£¬Õ¼Óõã×ÊԴûÎÊÌ⣬¹Ø¼üÎÒÏëÎÊÏÂÓÐû ¿ÉÒÔµÚÒ»´Î²é³öRecordSet£¬È»ºóÔÙ
Ïà¹ØÎÊ´ð£º
˵À´º¦Ðß¹þ£¬ºÇºÇ¡¡ ×Ôѧ±à³ÌÒѾÁ½Äê¶àÁË£¬»¹²»»á²é¿´Êý¾Ý¿âÁ¬½Ó³Ø°¡£¬Çë´óÏÀÃÇ˵һÏÂÔõÑù²é¿´Ñ½£¿ ±È·½Ëµ£¬ÎÒÓÃIEºÍFFºÍOperaͬʱÒÔÈý¸öÓû§Éí·Ý´ò¿ª±¾µØÍøÕ¾£¨ÍøÕ¾ÔÚIISÉÏ£¬µØÖ·Èçhttp://127.0.0.1/M ......
´íÎóÀàÐÍ£º Microsoft OLE DB Provider for SQL Server (0x80040E14) ³ý·Çͬʱָ¶¨ÁË TOP£¬·ñÔò ORDER BY ×Ó¾äÔÚÊÓͼ¡¢ÄÚǶº¯Êý¡¢ÅÉÉú±íºÍ×Ó²éѯÖÐÎÞЧ¡£ /cnblms/index_2/Order_show.asp, µÚ 94 ÐÐ ......
ÎÒ×°µÄÊÇWin2003ϵͳ£¬·Ö±ð°²×°ÁËsql server2000ºÍsql server2005£¬ÏÖÔÚ³öÏÖÁËһЩÎÊÌ⣬¾ÍÊÇÔÚ¾ÖÓòÍøÄÚÆäËüµÄµçÄÔÓÃSQL 2000ÎÞ·¨·ÃÎʵ½ÎÒµÄÊý¾Ý¿â~~Ìáʾ´íÎóΪ£ºSQL Server²»´æÔÚ»ò·ÃÎʱ»¾Ü¾ø£¬Ö®Ç°Ö»ÓÐSQL 2000µÄÊ ......