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...


How to write custom sql query in magento?



How to write custom sql query in magento?..

Answer / Ramanand Kumar

To execute a custom SQL query in Magento, use the `MagentoFrameworkAppResourceConnection` class. Follow these steps:
1. Inject the resource connection into your model or controller.
2. Fetch the connection object.
3. Execute the raw SQL query using the `getConnection()` method.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Magento PHP Interview Questions

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

1 Answers  


Where can I download magento?

1 Answers  


Which is best ecommerce platform?

1 Answers  


how to create a featured product?

1 Answers  


Why is magento best?

1 Answers  


Does magento require coding?

1 Answers  


What programming language is magento?

1 Answers  


What is mvc in magento?

1 Answers  


What do you mean by virtual product in magento?

1 Answers  


What does a crm do?

1 Answers  


Explain the different versions of magento?

1 Answers  


What is a module in magento?

1 Answers  


Categories