Add record using insert query in Magento 2.

You can create custom insert query using Magento 2 to add/create a new record in database table via ResourceConnection class.

Using the Insert query, You can add a new record to the table using direct SQL query insert() without going to model operation.

One Reply to “Add record using insert query in Magento 2.”

Leave a Reply