Microsoft sql 2008
这三个表是相关联的b = b和d = d我想查询3个表并通过使用表1中的声明集column1 = a来更新表2 column3 = d中的值,并声明set column2 = f in table3 . 一旦满足条件,使用table3 column3中的值更新表2 column3
table 1
column1 column2 column3
a b c
table 2
column1 column2 column3
c b d
table 3
column1 column2 column3
e f d
1 回答
像这样?