Home  >  Article  >  Backend Development  >  Very useful statistical SQL statements

Very useful statistical SQL statements

WBOY
WBOYOriginal
2016-07-25 09:06:52917browse
Statistical SQL statement regularization.                                               
                                                                                                                                                                                                                                                                                                       



$temp = explode("limit",$this->sql);
                    $countsql = preg_replace("/select (.*?) from (.*?)/i",'select count(* ) from2 ',$temp[0]);
  1. Copy code
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn