How to print Magento SQL Query?
magento

How to print Magento SQL Query?

KrikaSoft
08 Jun 2014 16:27

To get a generated SQL query in Magento we need to get collection object and using the collection we can get SQL Query by using bellow code.

/** Get SQL Qeury generated for Collection */
$this->_collection->getSelect()->__toString();

Author

KrikaSoft
Hello, I'm
KrikaSoft

KrikaSoft offers innovative IT solutions and services to businesses worldwide. Specializing in Web development, Web customization, and Website design, we excel in Magento, WordPress, and other PHP frameworks. From Hybrid Application Development to seamless user experiences, trust us as your technology partner for reliable and cutting-edge solutions. Experience excellence with KrikaSoft!

Latest Post