How to run custom query in magento?



How to run custom query in magento?..

Answer / Sarvesh Kumar

In Magento, you can execute custom SQL queries using the `Mage_Core_Model_Resource_Db_Abstract` class. To do this, first extend a resource model for your entity and override the _construct() method to set up your connection. Then, create a method that executes your custom query.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Magento PHP Interview Questions

Explain registry pattern in magento?

1 Answers  


How many types of sessions are there? Why we use different sessions in magento?

1 Answers  


how magento orm works?

1 Answers  


Explain the architecture of magento.

1 Answers  


How can I prepare for magento 2 exam?

1 Answers  


State the syntax to call a cms page in your module's phtml file.

1 Answers  


What does magento cost?

1 Answers  


What is rest api in magento?

1 Answers  


What is the best ecommerce platform 2019?

1 Answers  


What language is magento?

1 Answers  


Is magento for free?

1 Answers  


Did magento buy adobe?

1 Answers  


Categories