MysqlÖС°_¡± µÄËÑË÷ÎÊÌâ

MysqlÖС°_¡± µÄËÑË÷ÎÊÌâ - Ó¦ÓÃÈí¼þ - µçÄԽ̳ÌÍø

MysqlÖС°_¡± µÄËÑË÷ÎÊÌâ

ÈÕÆÚ£º2007-04-04   ¼ö£º
¡¡¡¡ÕæÊǺ®°¡¡«Èç¹û²»ÊÇ Babyken µÄÌáÐÑ£¬Õâ¸ö´íÎóÎÒÏëÎÒ»¹»áÒ»Ö±·¸ÏÂÈ¥¡£ÊÂÇéÆðÒò£¬°ï Babyken ×öÁËÒ»¸ö 0day ²éѯµÄ½Å±¾£¬½Å±¾ºÜ¼òµ¥£¬¾ÍÊǼòµ¥µÄÈ¡Óû§ÊäÈëµÄÖµ×ö LIKE ²Ù×÷²éѯÊý¾Ý¿â¡£×öºÃºó¾­²âÊÔÒ»Ö±ÔËÐкܺ᣿ÉÊǽñÌì Babyken ¸æËßÎÒ˵ÓиöBUG£¬ÊäÈë "___" »ò ".__" µÈÀàËƵĹؼü×Öʱ£¬»á°ÑÊý¾Ý¿âÖеÄËùÓмǼ¶¼È¡³öÀ´¡£Å¼ÓÖÊÔÁËÒÔǰд¹ýµÄ¼¸¸öÓ¦Ó㬺®£¬¶¼ÓÐÕâ¸öÎÊÌâ¡£¡£¡£¿´ÆðÀ´ÊÇSQL±¾Éí¶ÔLIKEµÄ´¦ÀíÎÊÌâ¡£ÎÊÁ˼¸¸öÅóÓÑÒ²¶¼Ã»ÓÐ×¢Òâ¹ý¡£ºóÀ´ÔÚMysqlÊÖ²áÉÏÕÒµ½´ð°¸£ºPattern matching using SQL simple regular expression comparison. Returns 1 (TRUE) or 0 (FALSE). With LIKE you can use the following two wildcard characters in the pattern:Char Description% Matches any number of characters, even zero characters_ Matches exactly one characterµ±Ê±¸Ð¾õ¾ÍÊǺ¹°¡¡«¡« ÒÔÇ°Ôõô×Ô¼º¾ÍûÓÐ×¢Òâ¹ýÄØ?½â¾ö°ì·¨ÊÇ°ÑÓû§µÄÊäÈëÖÐµÄ _ ºÍ % תÒå¡£²»ÖªµÀÊÇÖ»ÊÇMysqlÓÐÕâ¸öÎÊÌ⣬»¹ÊÇÆäËüÊý¾ÝÒ²ÓС£Ï£ÍûÊìϤÆäËüÊý¾Ý¿âÓ¦ÓõÄÅóÓÑÊÔһϡ£Ïà¹ØMysql˵Ã÷Ò³Ã棺http://www.mysql.com/doc/en/String_comparison_functions.html2004Äê1ÔÂ16ÈÕ22ʱ25·Ö²¹¼Ç£ºÓëxdanger̽ÌÖºó·¢ÏÖ£¬Ä¿Ç°ÍøÉϴ󲿷ֵÄPHP£«Mysql³ÌÐò¶¼´æÔÚ´ËBUG£¬IPBºÍPHPBBÒ²²»ÀýÍ⣬VBBÖб»¹ýÂ˵ôÁË¡£¿´ÆðÀ´ÕâÓ¦¸ÃÊÇÒ»¸öÖµµÃÒýÆðÖØÊÓµÄÎÊÌâÁË¡£
±êÇ©£º