Updating two tables in a single query in sql

In this article I will show you a number of different ways to use the UPDATE statement to modify the data in your SQL Server tables.There are multiple ways to use the UPDATE statement to update a SQL Server table.(Bug #11758262, Bug #50439) See Section, “Determination of Safe and Unsafe Statements in Binary Logging”, for more information.If you access a column from the table to be updated in an expression, assignments are generally evaluated from left to right.Below is the TSQL code to create and populate this table.These two different tables will be used in my UDPATE statement examples below.

If the software must support multiple database backends or versions, perhaps the generic, standard queries are the best bet.

I have a scenario which will require 4 tables to be updated.

Should I be using 'JDBC update' for each table in a scenario.

For multiple-table updates, there is no guarantee that assignments are carried out in any particular order. COLUMN2 IS NULLAn outerjoin is performed based on the equijoin condition.

If you set a column to the value it currently has, My SQL notices this and does not update it. Records not matching the equijoin from table2 are marked with null.