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

mysql order by/group by ÓÅ»¯

explain select im.item_id from property_value p left join item i on p.id = i.value left join
item_message im on i.item_id = im.item_id where ( p.value like '%²ÍÒû%' or p.value like '%À­%' )  and im.class = 1 and im.status = 0 and p.`property_id` in (SELECT id from
`property` WHERE `key_p` = 1) LIMIT 24 , 8


id  select_type  table  type  possible_keys  key  key_len  ref  rows  Extra 
1 PRIMARY im ref class,item_id class 4 const 9096 Using where
1 PRIMARY i ref value,item_id item_id 4 fenlei.im.item_id 8 Using where
1 PRIMARY p eq_ref PRIMARY PRIMARY 4 fenlei.i.value 1 Using where
2 DEPENDENT SUBQUERY property unique_subquery PRIMARY PRIMARY 4 func 1 Using where


explain select count(im.item_id), im.item_id from property_value p left join item i on p.id = i.value left join
item_message im on i.item_id = im.item_id where ( p.value like '%²ÍÒû%' or p.value like '%À­%' )  and im.class = 1 and im.status = 0 and p.`property_id` in (SELECT id from
`property` WHERE `key_p` = 1) group by im.item_id LIMIT 20 , 8

id  select_type  table  type  possible_keys  key  key_len  ref  rows  Extra 
1 PRIMARY im index class,item_id item_id 4 NULL 3 Using where
1 PRIMARY i ref value,item_id item_id 4 fenlei.im.item_id 8 Us


Ïà¹ØÎÊ´ð£º

mysqlµÄÁ¬½Ó³¬Ê±Ê±¼äÔõôÉèÖà - VC/MFC / Êý¾Ý¿â

ÎÒÊÇÓÃmysql×Ô´øµÄC API
if(mysql_real_connect(&mysql,"125.0.0.108","root","root","home",3306,NULL,0))

AfxMessageBox("Êý¾Ý¿âÁ¬½Óʧ°Ü") ......

MYSQL°²×°Ê§°Ü

ÎÒÒÔǰ°²×°ÁËÒ»´Î£¬ºóÀ´Ð¶ÔØÁË£¬ÏÖÔÚÔÙ°²×°µÄʱºò£¬Ìáʾ´íÎó£ºError 1305.Error reading from file C:DOCUME~1\LOCALS~1\Temp\mysql_server.msi.Verify that the file exists and that you can access it. 
¿ ......

c#¿ØÖÆMysql ʵÏÖ×Ô¶¯É¾³ý¹¦ÄÜ - .NET¼¼Êõ / C#

Óиöwinform³ÌÐò,ʹÓÃc#+mysql,ÐèÒªÔÚÒ»¸ö´°ÌåÉèÖÃmysql×Ô¶¯É¾³ý¹¦ÄÜ,°üÀ¨×Ô¶¯É¾³ý¶àÉÙÌì֮ǰµÄÊý¾ÝÒÔ¼°ÊÇ·ñ¿ªÆô×Ô¶¯É¾³ý¹¦ÄÜ,ÎÒ³ÌÐòÍ˳öºó,»¹Ôõô¿ØÖÆMysql×Ô¼ºÉ¾³ý°¡?ÊDz»ÊÇÒªÓÃmysqlµÄeventÀ´ÊµÏÖ?c#¿ÉÒÔµ÷ÓÃmysq ......

MYSQL ÊÂÎñµÄÎÊÌâ

SQL code:

create PROCEDURE aa(SqlCMD1 varchar(8000),SqlCMD2 varchar(8000),SqlCMD3 varchar(8000))
begin
declare exit handler for sqlexception rollback;
start TRANSACTION;
EXECUTE SqlCMD1;
EXE ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ