·þÎñÆ÷¶ËÓïÑÔphp.select id from item where id in ( '5 ', '4 ', '1 ', '2 ', '3 ') order by instr( '5 ', '4 ', '1 ', '2 ', '3 ',id) SQL code: select id from item where id in ('5','4','1','2','3') order by locate(concat(',',id,','),',5,4,1,2,3,');
SQL code: select id from item where id in ('5','4','1','2','3') order by find_in_set(id,'5,4,1,2,3')
MYSQL ½ØÈ¡Ò»¸öÊý¾Ý±íÖÐ,ijһ¸ö×Ö¶Î(fulltext) µÄǰÈý°Ù¸ö×Ö·û,·Åµ½¸Ã±íÏÂÁíÒ»¸ö×Ö¶Î(introtxt)Àï. ÇóʵÏÖÕâ¸öЧ¹ûµÄÃüÁî SQL code: update ±í set introtxt=left(`fulltext`,300);
»·¾³£ºwin2003 apache2 resin3 php5 mysql5 mysql´íÎóÀï³öÏÖÕâ¸ö£¬·þÎñÆ÷Ö±½ÓËÀµ½ÄÇÀï¡£ InnoDB: The log sequence number in ibdata files does not match InnoDB: the log sequence number in the ib_log ......