Explain how to write custom sql query in magento?
Answer / Ashutosh Kumar Jatav
To write a custom SQL query in Magento, you can use the resource model. Here's an example:n1) In your model class, declare a resource model:nt$resource = $this->getResource();n2) Then call the query method on the resource model:nt$connection = $resource->getConnection();n3) Finally, execute your custom SQL query:nt$result = $connection->query($sql);
| Is This Answer Correct ? | 0 Yes | 0 No |
Define magento.
How to convert default currency to others in magento?
How much does magento ecommerce cost?
What is magento integration?
What code is magento written in?
What are the differences between magento 1.9 and magento 2.0?
Is magento free?
What is difference between wordpress and magento?
Explain EAV Concept in magento
Which companies use magento?
What exactly is magento?
What is codepool in magento? Explain