Update one table from another table:-
UPDATE #temp1
SET #temp1.t3=#temp 2.t3,
#temp1.t4 = #temp2.t4
FROM #temp1, #temp2
WHERE #temp1.row = #temp2.row
UPDATE #temp1
SET #temp1.t3=#temp
#temp1.t4 = #temp2.t4
FROM #temp1, #temp2
WHERE #temp1.row = #temp2.row
Comments
Post a Comment