accessת»»mssqlºó²éѯºÜÂý
accessʱ²éѯËٶȻ¹Âù¿ìµÄ£¬ÏÖÔÚת³ÉmssqlÁË£¬Êý¾ÝÁ¿²¢²»´ó£¬Í¨³£Êý¾ÝÁ¿¶àЩµÄ¾ÍÊǼ¸Ç§Ìõ£¬µ±È«²¿ÁгöÊý¾ÝʱËÙ¶ÈÒ²²»Âý£¬¾ÍÊÇ°´Ìõ¼þËÑË÷ʱ¾ÍÂýÁË£¬ÇëÎÊÊDz»ÊǸúlikeÓйذ¡£¬µ«ÒÔÇ°ÓÃaccessÂù¿ìµÄ°¡£¬Ò²½¨Á¢ÁËË÷ÒýÁË ÎÒlikeÊÇÕâÑùд·¨µÄ sqlstr += " and hbh like '%" + bh + "%'";
д³öÓï¾ä¿´¿´ ÒýÓà £¬ÇëÎÊÊDz»ÊǸúlikeÓйذ¡£¬µ«ÒÔÇ°ÓÃaccessÂù¿ìµÄ°¡£¬Ò²½¨Á¢ÁËË÷ÒýÁË LIKE ±¾À´¾Í»áÓ°ÏìЧÂÊ,¶øÇÒµ¼ÈëÊý¾Ýºó,ÒªÖؽ¨Ò»ÏÂË÷Òý Èç¹ûLIKE 'FADFDSA%'ÕâÑù»áÓõ½Ë÷Òý,Èç¹ûLIKE '%FA%'ÊDz»»áÓõ½Ë÷ÒýµÄ ͬÒ⣬likeºó¾ÍÓò»µ½Ë÷ÒýÁË Èç¹ûÊý¾ÝÁ¿´óµÄ»°£¬½¨Ò鿼ÂÇÆäËû½â¾ö·½°¸ ÎÒÕýÔÚ¿¼ÂÇÊDz»ÊÇÓÃLuceneÀ´½â¾öÈ«ÎļìË÷µÄÎÊÌâ ÊDz»ÊǺܶà±í¹ØÁªÁË? ½¨ÁËÖ÷Í⽡ÁËÂð? ûÓйØÁª£¬Ò²Ã»ÓÐÍâ¼üÔ¼ÊøʲôµÄ£¬ÇëÎÊÊǺÎÔÒò ¿ÉÒÔÓÅ»¯²éѯÌõ¼þµÄ°É Ë÷Òý»¹ÊDz»¶®°¡ Æ®¹ý Ë÷ÒýÊǹؼü°¡¡£¡¢¡£¡£ ¼¸Ç§Ìõ£¬Óò»ÓÃË÷ÒýÓ°Ïì²»´óµÄ ÇëÎÊÄÇÓÖÊÇʲôÔÒòÄØ ºÇºÇ ÏÈл¹ý Ï£ÍûÎÒÀ´µÃ²»»áÌ«Íí ¹þ¹þ
Ïà¹ØÎÊ´ð£º
ÔÚMSSQLÖУ¬ÎÒÃÇ¿ÉÒÔÒ»´Î²éѯ¶à¸öÊý¾Ý±í²¢¼ÓÈëµ½Êý¾Ý¼¯ÖУ¬ÖмäÖ»ÐèÓ÷ֺŸô¿ª£®È磺 £¢select * from A;select * from B;select * from C£¢,Ìî³äÊý¾Ý¼¯ºóÔÚDSÖоÍÓÐÁËÈýÕÅ±í£® µ«ÔÚÓÃͬÑùµÄÓï¾ä·ÃÎÊACCESSÊý¾ ......
CREATE TABLE Product(model integer, maker varchar(20), CONSTRAINT SAND PRIMARY KEY (model), CONSTRAINT PANDA FOREIGN KEY (model) REFERENCES PC (model) ON DELETE CASCADE ......
Çë´óÏÀÖ¸µã£¬¹òлÁË£¬×îºÃÓдúÂë ÒªÓõ½ADOX¶ÔÏ󣬲éÏ°ïÖúÎĵµ£¬ http://hyadliujing.blog.163.com/blog/static/4484507420091020969233/?mode=edit ûÓÐÕÒµ½°¡ ¿´ÁËÄãµÄ²©¿ÍÁË£¬ÎÒÊÇÏ뽫accessÀïÃæµÄ¸½¼þ±£´æ ......
ÓÐÒ»¸öÊý¾Ý¿âÀïÖ»ÓÐ2WÌõÊý¾Ý²»µ½£¬È´ÓÐ500MÄÇô´ó,Ôõô»ØÊ°¡£¿ÊÇACCESSµÄÊý¾Ý¿â¡£ºóÀ´ÎÒ°ÑACCESSµ¼Èëµ½MSSQLÖУ¬Ò²Õ¼ÓÃÁË500M×óÓҵĿռ䣬Èç¹ûѹËõÊý¾Ý¿âÄØ£¿Çë¸ßÊÖÖ¸µã ѹËõÊý¾Ý¿â£¿ÄÜ×öµ½Ã´... ÆÚ´ý¸ßÈËÖ¸µã ÎÒ ......
rt£¬ÎÒÊÔÁËÍøÉÏÖ±Á¬AccesÊý¾Ý¿âµÄ·½·¨,windowsÏÂûÓÐÎÊÌâ,µ«ÊÇÔÚlinuxϲ»ÐУ¬ËÄܸøµãÌáʾ£¿Ð»Ð» ÄãÔõôÁ¬µÄ£¿ AccesÊý¾Ý¿â.. ÄãÔõôÁ·µÄÄØ£¿ Java code: static String DBDRIVER = "sun.jd ......