Rate this post

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!

Your Magento website needs a powerful Magento ERP for stock control.


magento erp

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