我必須在過程中執行以下更新行。我可以在一行中更新它嗎?這裏只有一張桌子。多列更新
UPDATE magic_table SET first_col=0,last_col=my_value where first_col is not null;
UPDATE magic_table SET second_col=0,last_col=my_value where second_col is not null;
UPDATE magic_table SET third_col=null,last_col=my_value where third_col is not null;
如果是這樣,它會給我們任何性能改進?
'third_col = nvl2(third_col,null,third_col),'是有效的嗎?如果我更新第三行,如'UPDATE magic_table SET third_col = null,last_col = my_value where third_col is not null;'?? – NaaN