Mysql fetchAll() query using Magento standard way for fetch all the records of the custom query.
You can fetch all the selected record from the table using direct SQL query fetchAll() without worry about the Model operation.
Return Type: fetchAll() always return as array based on your query conditions. Continue reading “Fetchall() mysql query in Magento 2.”