Some time you want to update a column in a table from another table’s column and in magento 2 you can use “updateFromSelect” function to do it.

  • This is an example in resouce model
  • And this is the query after the code is render

Hope it helpful for you.

The steps I mention above is the shortest process for you to Update a Column in a Table from Another Table’s Column in Magento 2.

Thank you for reading this post and see you in other posts from Magestore!


Ready to foster your knowledge

with MAGENTO 2 BASIC GUIDE

Is your site still a mess and Magento extensions are not enough to save your site? Save your site with Magento Web Development Services now

magento services


How to Create CMS Pages by Source Code in Magento 2
How to Work with Product Collection Magento 2

Leave a Reply

Your email address will not be published. Required fields are marked *