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

mysqlÓαê±éÀúÎÊÌâ...

CREATE PROCEDURE `UserCenterAction`(uId int,timeArea date) 

BEGIN 

DECLARE notInIds varchar(255 ); 
DECLARE userLocation varchar(10); 

DECLARE notFriendIds varchar(255 ); 
DECLARE differentLocaleIds varchar(255 ); 

DECLARE notFriendActionIdTemp int; 
DECLARE notFriendActionOwnerIdTemp int; 

DECLARE differentLocaleActionIdTemp int; 
DECLARE differentLocaleActionOwnerIdTemp int; 

DECLARE isFriend int ; 
DECLARE isSameArea int default 0; 

DECLARE notFriendCount int ; 
DECLARE differentLocationCount int default 0; 


DECLARE onlyFriendCur CURSOR for select id,Creater_id from member_action where display_flag='Y' and Create_time > timeArea and permission_code="-4"; 

DECLARE netWorkAndFriendCur CURSOR for select id,Creater_id from member_action where display_flag='Y' and Create_time > timeArea and permission_code="-3"; 

select count(*) into notFriendCount from member_action where display_flag='Y' and Create_time > timeArea and permission_code='-4'; 

select Location into userLocation from member where userId=uId ; 

open onlyFriendCur; 
  WHILE notFriendCount > 0 DO 
  fetch onlyFriendCur into notFriendActionIdTemp,notFriend


Ïà¹ØÎÊ´ð£º

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

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

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

ÔÚ°²×°MYSLQʱ½«Êý¾Ý¿âµÄ×Ö· ......

MYSQLÈçºÎÓëC++Á¬½Ó£¿ - VC/MFC / Êý¾Ý¿â

ÎÒÊÇÐÂÊÖ£¬³õѧMYSQL£¬Óкܶ಻¶®£¬Íû´Í½Ì£¡£¡
±ÈÈç˵ÎÒн¨Ò»¸öMYSQLÊý¾Ý¿âUSER Êý¾Ý¿âÖÐÓбíLIST 
È»ºóÎÒÔÚVCÖÐн¨Ò»¸öMFC¶Ô»°¿ò¹¤³Ì£¬È»ºóÎÒÔõôÑù²ÅÄÜÓÃVC»ñµÃÊý¾Ý¿âÖбíµÄÊý¾Ý£¿
Ï£Íû¸ø³ö¾ßÌåµÄ²Ù×÷² ......

vs2008 Á¬½Ómysql£¿ - MS-SQL Server / »ù´¡Àà

ÇëÎÊ
Ìí¼ÓÐÂÊý¾ÝÔ´->Êý¾Ý¿â->Ìí¼ÓÁ¬½Ó
Õâ¸ö½çÃæÏ£¬Êý¾ÝÔ´Ñ¡Ôñ£ºMicrosoft SQL Server (SqlClient)£»
·þÎñÆ÷Ãû£º
Ó¦¸ÃÐ´Ê²Ã´ÄØ£¿
ÓÐË­ÖªµÀ£¿¶àл¸÷λ£¡£¡
Äãµ½µ×ÊÇÒªÁ¬mysql»¹ÊÇmssql£¿

ÒýÓÃ
ÇëÎÊ
......

ÖØ´óÎÊÌ⣬mysql¸øÎÒ³öÁ˸ö´óÄÑÌâ - PHP / »ù´¡±à³Ì

//´¦Àí1285¸ö´úÀíʱ¼ä£º³¬Ê±
/*
$query = "
update proxy,worldip
set proxy.code = worldip.code
where proxy.ip > worldip.start and proxy.ip < worldip.end";
*/
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ