Home > Article > Backend Development > Very useful statistical SQL statements
Statistical SQL statement regularization.
$temp = explode("limit",$this->sql); $countsql = preg_replace("/select (.*?) from (.*?)/i",'select count(* ) from2 ',$temp[0]);
|