Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

mysql order byÓÅ»¯ÎÊÌâ

explain select im.item_id from item_message im FORCE INDEX (item_id) where ( im.keyStr like '%À­%' ) and im.class = 1 and im.top = 0 and industry = '²ÍÒû' order by im.item_id desc LIMIT 0 , 8

id  select_type  table  type  possible_keys  key  key_len  ref  rows  Extra 
1    SIMPLE      im    index NULL          item_id 4    NULL 8 Using where

ÒÔÉÏsql£¬¿ÉÒÔÔÙ¼ÌÐøÓÅ»¯Â𣬲»ÖªÎªÊ²Ã´£¬typeÄÄÀï×ÜÊDZêʶindex£¬ÊÇÒòΪÎÒÅÅÐòµÄ×Ö¶Îitem_idÊÇΨһµÄÖµÓйØÂð£¿
ÁíÍâÔÙÎÊÒ»¸ö²ËÄñÎÊÌ⣬Èç¹ûÎÒ²»ÓÃFORCE INDEX (item_id)£¬explain½á¹ûÈçÏÂ

id  select_type  table  type  possible_keys  key  key_len  ref  rows  Extra 
1  SIMPLE        im    ref  Industry,class,top Industry 63 const 1 Using where; Using filesort
ÕâÊÇÎªÊ²Ã´ÄØ£¿ËäÈ»ÓÐÁË Using filesort£¬µ«ÕâÀïµÄtypeÈ´ÊÇref£¬·Ç³£²»Ã÷°×£¬¶øÎÒÓÃÁËFORCE INDEX »áʹÎÒÆäËûË÷Òý£¬Èç
keyStr µÄFULLTEXT ʧЧÂð

¸½Ë÷Òý
Table  Non_unique  Key_name  Seq_in_index  Column_name  Collation  Cardinality  Sub_part  Packed  Null  Index_type  Comment 
item_message 0 PRIMARY 1 id A 8 NULL NULL  BTREE 
item_message 1 regional 1 regional A NULL NULL NULL YES BTREE&nbs


Ïà¹ØÎÊ´ð£º

mysqlµÄÇý¶¯³ÌÐò

ÎÒÓÐÒ»¸öjava»·¾³ÏµijÌÐò£¬ÔÚ±¾»úÔËÐÐÕý³££¬µ«·¢²¼µ½ÍøµÄÐéÄâÖ÷»úʱ²»ÄÜÁ¬½ÓÊý¾Ý¿âÁ¬½Ó³Ø
jdk 1.6 tomcat6.0.18 mysql5 mysqljdbc5.1.5
ÐéÄâÖ÷»úµÄ¼¼ÊõÈËԱ˵£¬Ö»ÄÜÅäÖþÖÓòµÄÊý¾Ý¿âÁ¬½Ó³Ø£¬Ò²¾ÍÊÇÔÚM ......

ÐèÒªÊÓÆµ½Ì³ÌµÄÐÂÊÖ½ø php + mysql + apache ÅäÖÃ

Õâ¸öÊÓÆµ½²µÄºÜÏêϸ, ¶ÔÐÂÊַdz£ÓÐÓÃ, »ù±¾ÉÏÒ»¿´¾Í¶®
ÓÉÓÚÌ«´óÁË(50m, ÎÒÖ»ÄÜÉÏ´«20m), ÎÒÉÏ´«²»ÁË, Ö»ºÃÌù³öÏÂÔØµØÖ·
ÏÂÔØµØÖ·: http://ftel1.3800hk.com/0807/080720djxnzj.rar
ºÃ¶«Î÷,ϸö¿´¿´


......

ΪʲôMySQL²»Ö§³ÖÖÐÎİ¡£¿£¿

ÈçÌ⣬MySQL²»»áÕâÑù°É
Ö§³Ö£¬Ä㽨Á¢Êý¾Ý¿âµÄʱºòÖ¸¶¨×Ö·û¼¯utf8»òÕßgbk¾ÍÐÐÁË¡£

http://blog.csdn.net/ACMAIN_CHM/archive/2009/05/12/4174186.aspx
MySQL ÖÐÎÄÏÔʾÂÒÂë

Ö§³Ö£¬¼ì²é×Ö·û¼¯ÉèÖÃ

Ö§³Ö£¬¼ì² ......

ÓйØmysqlµÄÎÊÌ⣡ - Java / Web ¿ª·¢

ÎÒµÄmysqlÔõôûÓа취дÈëÖÐÎÄÊý¾Ý£¿Ö»ÒªÊÇÊý¾ÝдÈëÊý¾Ý¿âʱ ¾Í»á±ä³ÉÈý¸öÎʺŠ£¿Çë½Ì¸ßÈË£¡£¡
linux? ÔõôдÈëµÄ

ÔÚmysqlÖÐÖ´ÐÐ show variables like 'character%'Ìù½á¹û³öÀ´¡£

ÔÚ°²×°MYSLQʱ½«Êý¾Ý¿âµÄ×Ö· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ