<table cellspacing="0" cellpadding="0"><tr><td class="t_f" id="postmessage_23750"> 统计的SQL语句正则. <br> <br> <br> <br> <br> <div class="blockcode"> <div id="code_KRJ"><ol> <li>$temp = explode("limit",$this->sql);</li> <li> $countsql = preg_replace("/select (.*?) from(.*?)/i",'select count(*) from2 ',$temp[0]);</li> </ol></div> <em onclick="copycode($('code_KRJ'));">复制代码</em> </div> </td></tr></table> <div id="comment_23750" class="cm"> </div> <div id="post_rate_div_23750"></div> <br><br>