Tag

magento2 query

Browsing

Sometimes we need to write custom insert query in magento2 as per business logic or client requirement. In this blog, We will create some standard code to insert data using custom insert.We need to use magento ResourceConnection class for insert data in mysql table. Here we are adding a new record in custom table call_logs, that contains three columns only id, external_number and duration Above code in we used insert function for single record call_logs table.…