Thinkphp printing the last SQL statement is a common usage. It is often used during code debugging. Due to its poor memory, this remark makes it easy to use later.
The following is an example record
$ Form = M ('user'); $ result = $ form-> where (array ('username' => 'www .phpernote.com ')-> select (); // The following is the method for printing this SQL statement $ form-> getLastSql ();
Articles you may be interested in
- The last record of the volist loop in the thinkphp Template
- Php builds a simple example of its own MVC Framework and provides ideas for your reference only
- PHP obtains the week of the specified date, the first day of the month and the last day of the month.
- How does php Delete the first and last elements of an array?
- Php calculates the number of weeks in a year or January.
- Summary of system constants in the Action controller of thinkphp
- Summary of common system variables in Thinkphp templates
- PHP records search engine paths and keywords