Answer Posted / 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 View All Answers