Quantcast
Channel: mysql – blog.azwan.net
Viewing all articles
Browse latest Browse all 17

Update with join table

$
0
0

To update a table with a condition within other table (to join table), you can use this statement

1
2
3
UPDATE table1 a, table2 b
SET a.field6 = value
WHERE a.field1 = b.field1 AND b.field2 = value2

Viewing all articles
Browse latest Browse all 17

Trending Articles