Roshan Gurung
  • Hello world
  • Programming
    • Clean Coding Principles
    • .NET
      • Get the keys with model state errors in MVC
      • Null Propagation Operator in C#
      • Add objects to a list without using loop
      • Convert an image (selected by path) to base64 string
      • Escape character for & in webconfig settings
    • Database
      • Update with join in mysql
Powered by GitBook
On this page

Was this helpful?

  1. Programming
  2. Database

Update with join in mysql

// Some code
UPDATE tableA ta 
JOIN tableB tb on ta.column = tb.column
SET ta.column = "random"
WHERE ta.column = "where1" AND tb.column = "where2";

PreviousDatabase

Last updated 3 years ago

Was this helpful?