delete from users where users_regdate > "2009-10-10"; Ó¦¸Ã¾Í¿ÉÒÔÁË . ÉÏÃæµÄ²éѯֻÊǾٵÃÒ»¸öÀý×Ó°¡£¬²éѯ½á¹ûÊǶà±íÁªºÏ²éѯ³öÀ´µÄ½á¹û£¬È»ºóÔÙ¶Ôusers±í½øÐÐɾ³ý²Ù×÷ ²éѯÊÇ select users_id from users where users_id not in (select users_id from info) È»ºó°Ñusers ±íÖжÔÓ¦µÄusers_idÐÅϢɾ³ýµô Ò»Ìõ²éѯÓï¾ä²éѯ³öÀ´É¾³ýÊÇ¿ÉÐУ¬²»¹ýÄãÒª¿¼Âǵ½ÄãµÄÖ´ÐÐЧÂÊ£¬Êý¾ÝÁ¿´óµÄʱºò¹À¼ÆÒ³Ãæ¾ÍÍ£Ö¹ÏìÓ¦ÁË¡£½¨ÒéÏÈselect ³öÀ´´æÈëÊý×飬phpÅúÁ¿É¾³ý£¡¡« ´ó¸ÅÓÐ2000ÌõÐÅϢҪɾ³ý£¬ÓÃphpµÄÅúÁ¿É¾³ý PHP code:
$query = mysql_query("select users_id from users where users_id not in (select users_id from info)"); if(mysql_num_rows($query) > 0){ while(false != ($tt = mysql_fetch_array($query))){ mysql_query("delet
ÎÒÓõÄÊÇÁ¬½Ó³Ø×öµÄ£¬ÅäÁ¬½Ó³ØµÄ·½·¨Ó¦¸ÃûÓÐ´í£¬ÎªÊ²¾ÍÊdzöÏÖÕâÖÖÎÊÌâ javax.servlet.ServletException: javax.naming.NameNotFoundException: No object bound to name java:comp/env/test ÇëÎÊ´óÏÀÃÇÕâÊÇÔ ......