I am trying to add below SQL query in the form of Zend format using Magento connection object Can you please let me know the syntax of how to follow...
update eav_attribute_set set attribute_set_name = replace(attribute_set_name, '_src', '') where attribute_set_name LIKE '%_src%';
Here is my method
protected function execute(InputInterface $input, OutputInterface $output)
{
try {
$connection = $this->resourceConnection->getConnection();
$tableName = $connection->getTableName(self::ATTRIBUTE_SET_TABLE);
//Add your logic here
-----------------------------
-----------------------------
} catch (\Exception $e){
$output->writeln("Something went wrong please check and try again");
}
}