34,870
社区成员




/*
table1
LH LB
table2
LH LB
现在我想更新tabl2 LB 条件是table1的LH =table2的LH
*/
update table2 set LB = LH.LB
from table1 LH inner join table2.LH on LH.LH = LH.LH
update table2 set LB = LH.LB
from table1 LH1 inner join table2 LH2 on LH1.LH = LH2.LH
update table2 set LB = A.LB
from table1 A inner join table2 B on A.LH = B.LH
update table2 set LB = LH.LB
from table1 LH inner join table2 LH on LH.LH = LH.LH