Cakephp prints the SQL statement code. Cakephp prints the SQL statement code and copies the following statement to your code. you can print all the preceding SQL statements: CopytoClipboard reference content: [www.veryhuo.com] $ cakephp prints the SQL statement code
Copy the following statement to your code and print all the SQL statements before this:
Copy to ClipboardReference: [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 print SQL statement code Copy the following statement to your code, you can print all the SQL statements before this: Copy to Clipboard reference content: [www.veryhuo.com] $...