프로 시저에서 다음 업데이트 줄을 실행해야합니다. 한 줄로 업데이트 할 수 있습니까? 여기에 하나의 테이블 만 있습니다.여러 열 업데이트
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와 같이 third_col이 null이 아닌 것처럼 세번째 라인을 업데이트한다면 ?? – NaaN