Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Explain how to write custom sql query in magento?



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

Post New Answer

More Magento PHP Interview Questions

Define magento.

1 Answers  


How to convert default currency to others in magento?

1 Answers  


How much does magento ecommerce cost?

1 Answers  


What is magento integration?

1 Answers  


What code is magento written in?

1 Answers  


What are the differences between magento 1.9 and magento 2.0?

1 Answers  


Is magento free?

1 Answers  


What is difference between wordpress and magento?

1 Answers  


Explain EAV Concept in magento

1 Answers   HCL,


Which companies use magento?

1 Answers  


What exactly is magento?

1 Answers  


What is codepool in magento? Explain

1 Answers  


Categories