cakephp prints the code of sql statement
Copy the following statement into your code, you can print out all the sql statements before this:
Copy to ClipboardQuoted content:
[www.bkjia.com]
$sources = ConnectionManager::sourceList();
if (!isset($logs)):
$logs = array();
foreach ($sources as $source):
$db =& ConnectionManager::getDataSource($source);
if (!$db->isInterfaceSupported('getLog')):
continue;
endif;
$logs[$source] = $db->getLog();
endforeach;
endif;
http://www.bkjia.com/PHPjc/363916.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/363916.htmlTechArticlecakephp prints the code of the sql statement. Copy the following statement into your code to print out all the previous statements. SQL statement: Copy to Clipboard Quoted content: [www.veryhuo.com] $...
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