时间:2021-07-01 10:21:17 帮助过:3人阅读
20190826
UPDATE { table_name WITH ( < table_hint_limited > [ ...n ] ) | view_name | rowset_function_limited }
SET { column_name = { expression | DEFAULT| NULL } | @variable = expression | @variable = column = expression } [ ,...n ]
{ { [ FROM { < table_source > } [ ,...n ] ]
[ WHERE < search_condition > ] } | [WHERE CURRENT OF { { [ GLOBAL ] cursor_name } | cursor_variable_name } ] }
[ OPTION ( < query_hint > [ ,...n ] ) ]
UPDATE tA SET tA.col1=tB.col1,tA.col2=tB.col2
FROM tableA tA,tableB tB
WHERE tA.col3=tB.col3
UPDATE table_references SET col_name1=expr1 [, col_name2=expr2 ...]
[WHERE where_definition]
UPDATE tableA tA, tableB tB
SET tA.col1=tB.col1, tA.col2=tB.col2
WHERE tA.col3=tB.col4
T-SQL多表更新
https://www.cnblogs.com/xinaixia/p/5509053.html
T-SQL 更新表操作
标签:ref res table cti date mysq 语法 lob www