php 很好用的统计SQL语句
很好用的统计SQL语句 统计的SQL语句正则.**[PHP]代码**[代码片段(2行)]
统计的SQL语句正则.
[PHP]代码
$temp = explode("limit",$this->sql); $countsql = preg_replace("/select (.*?) from(.*?)/i",'select count(*) from\2 ',$temp[0]);
精彩图集
精彩文章
统计的SQL语句正则.
[PHP]代码
$temp = explode("limit",$this->sql); $countsql = preg_replace("/select (.*?) from(.*?)/i",'select count(*) from\2 ',$temp[0]);
@CopyRight 2002-2008, 1SOHU.COM, Inc. All Rights Reserved QQ:1010969229